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