Class: Retab::ExistCondition

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/retab/workflow_evals/exist_condition.rb

Constant Summary collapse

HASH_ATTRS =
{
  kind: :kind
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ ExistCondition

Returns a new instance of ExistCondition.



14
15
16
17
18
# File 'lib/retab/workflow_evals/exist_condition.rb', line 14

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @kind = hash[:kind].nil? ? "exists" : hash[:kind]
end

Instance Attribute Details

#kindObject

Returns the value of attribute kind.



12
13
14
# File 'lib/retab/workflow_evals/exist_condition.rb', line 12

def kind
  @kind
end