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