Class: Retab::ContainCondition

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

Constant Summary collapse

HASH_ATTRS =
{
  kind: :kind,
  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) ⇒ ContainCondition

Returns a new instance of ContainCondition.



17
18
19
20
21
# File 'lib/retab/workflow_tests/contain_condition.rb', line 17

def initialize(json)
  hash = self.class.normalize(json)
  @kind = hash[:kind]
  @expected = hash[:expected]
end

Instance Attribute Details

#expectedObject

Returns the value of attribute expected.



13
14
15
# File 'lib/retab/workflow_tests/contain_condition.rb', line 13

def expected
  @expected
end

#kindObject

Returns the value of attribute kind.



13
14
15
# File 'lib/retab/workflow_tests/contain_condition.rb', line 13

def kind
  @kind
end