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