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