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