Class: Arpa::Validators::ProfileValidator
- Inherits:
-
Object
- Object
- Arpa::Validators::ProfileValidator
- Includes:
- ActiveModel::Validations
- Defined in:
- lib/arpa/validators/profile_validator.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#role_ids ⇒ Object
readonly
Returns the value of attribute role_ids.
Instance Method Summary collapse
-
#initialize(profile) ⇒ ProfileValidator
constructor
A new instance of ProfileValidator.
Constructor Details
#initialize(profile) ⇒ ProfileValidator
Returns a new instance of ProfileValidator.
11 12 13 14 15 |
# File 'lib/arpa/validators/profile_validator.rb', line 11 def initialize(profile) @name = profile.name @description = profile.description @role_ids = profile.role_ids end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
6 7 8 |
# File 'lib/arpa/validators/profile_validator.rb', line 6 def description @description end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/arpa/validators/profile_validator.rb', line 6 def name @name end |
#role_ids ⇒ Object (readonly)
Returns the value of attribute role_ids.
6 7 8 |
# File 'lib/arpa/validators/profile_validator.rb', line 6 def role_ids @role_ids end |