Class: Retab::BetweenCondition
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::BetweenCondition
- Defined in:
- lib/retab/workflow_tests/between_condition.rb
Constant Summary collapse
- HASH_ATTRS =
{ kind: :kind, lower: :lower, upper: :upper, inclusive: :inclusive }.freeze
Instance Attribute Summary collapse
-
#inclusive ⇒ Object
Returns the value of attribute inclusive.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#lower ⇒ Object
Returns the value of attribute lower.
-
#upper ⇒ Object
Returns the value of attribute upper.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ BetweenCondition
constructor
A new instance of BetweenCondition.
Methods inherited from Types::BaseModel
#inspect, normalize, #to_h, #to_json
Constructor Details
#initialize(json) ⇒ BetweenCondition
Returns a new instance of BetweenCondition.
21 22 23 24 25 26 27 |
# File 'lib/retab/workflow_tests/between_condition.rb', line 21 def initialize(json) hash = self.class.normalize(json) @kind = hash[:kind] @lower = hash[:lower] @upper = hash[:upper] @inclusive = hash[:inclusive] end |
Instance Attribute Details
#inclusive ⇒ Object
Returns the value of attribute inclusive.
15 16 17 |
# File 'lib/retab/workflow_tests/between_condition.rb', line 15 def inclusive @inclusive end |
#kind ⇒ Object
Returns the value of attribute kind.
15 16 17 |
# File 'lib/retab/workflow_tests/between_condition.rb', line 15 def kind @kind end |
#lower ⇒ Object
Returns the value of attribute lower.
15 16 17 |
# File 'lib/retab/workflow_tests/between_condition.rb', line 15 def lower @lower end |
#upper ⇒ Object
Returns the value of attribute upper.
15 16 17 |
# File 'lib/retab/workflow_tests/between_condition.rb', line 15 def upper @upper end |