Class: Infold::Validation::ValidateCondition
- Inherits:
-
Object
- Object
- Infold::Validation::ValidateCondition
- Includes:
- ActiveModel::Model
- Defined in:
- lib/infold/property/validation.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
- #condition ⇒ Object
-
#initialize(condition, options) ⇒ ValidateCondition
constructor
A new instance of ValidateCondition.
Constructor Details
#initialize(condition, options) ⇒ ValidateCondition
Returns a new instance of ValidateCondition.
28 29 30 31 |
# File 'lib/infold/property/validation.rb', line 28 def initialize(condition, ) @condition = condition @options = &.with_indifferent_access end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
26 27 28 |
# File 'lib/infold/property/validation.rb', line 26 def @options end |
Instance Method Details
#condition ⇒ Object
33 34 35 |
# File 'lib/infold/property/validation.rb', line 33 def condition @condition.to_sym end |