Class: Hermod::Validators::Attributes
- Defined in:
- lib/hermod/validators/attributes.rb
Overview
Checks the attributes are in a list of allowed attributes
Instance Attribute Summary collapse
-
#allowed_attributes ⇒ Object
readonly
Returns the value of attribute allowed_attributes.
Instance Method Summary collapse
-
#initialize(allowed_attributes) ⇒ Attributes
constructor
Public: Sets up the list of allowed attributes.
Methods inherited from Base
Constructor Details
#initialize(allowed_attributes) ⇒ Attributes
Public: Sets up the list of allowed attributes
10 11 12 |
# File 'lib/hermod/validators/attributes.rb', line 10 def initialize(allowed_attributes) @allowed_attributes = allowed_attributes end |
Instance Attribute Details
#allowed_attributes ⇒ Object (readonly)
Returns the value of attribute allowed_attributes.
7 8 9 |
# File 'lib/hermod/validators/attributes.rb', line 7 def allowed_attributes @allowed_attributes end |