Class: Retab::LengthCompareCondition

Inherits:
Types::BaseModel show all
Defined in:
lib/retab/workflow_tests/length_compare_condition.rb

Constant Summary collapse

HASH_ATTRS =
{
  kind: :kind,
  op: :op,
  expected: :expected
}.freeze

Instance Attribute Summary collapse

Attributes inherited from Types::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Types::BaseModel

#inspect, normalize, #to_h, #to_json

Constructor Details

#initialize(json) ⇒ LengthCompareCondition

Returns a new instance of LengthCompareCondition.



19
20
21
22
23
24
# File 'lib/retab/workflow_tests/length_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

#expectedObject

Returns the value of attribute expected.



14
15
16
# File 'lib/retab/workflow_tests/length_compare_condition.rb', line 14

def expected
  @expected
end

#kindObject

Returns the value of attribute kind.



14
15
16
# File 'lib/retab/workflow_tests/length_compare_condition.rb', line 14

def kind
  @kind
end

#opObject

Returns the value of attribute op.



14
15
16
# File 'lib/retab/workflow_tests/length_compare_condition.rb', line 14

def op
  @op
end