Class: Retab::AssertionSchemaDep

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

Constant Summary collapse

HASH_ATTRS =
{
  output_handle_id: :output_handle_id,
  schema_path: :schema_path,
  subtree_hash: :subtree_hash,
  depends_on_root: :depends_on_root
}.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) ⇒ AssertionSchemaDep

Returns a new instance of AssertionSchemaDep.



21
22
23
24
25
26
27
# File 'lib/retab/workflow_tests/assertion_schema_dep.rb', line 21

def initialize(json)
  hash = self.class.normalize(json)
  @output_handle_id = hash[:output_handle_id]
  @schema_path = hash[:schema_path]
  @subtree_hash = hash[:subtree_hash]
  @depends_on_root = hash[:depends_on_root]
end

Instance Attribute Details

#depends_on_rootObject

Returns the value of attribute depends_on_root.



15
16
17
# File 'lib/retab/workflow_tests/assertion_schema_dep.rb', line 15

def depends_on_root
  @depends_on_root
end

#output_handle_idObject

Returns the value of attribute output_handle_id.



15
16
17
# File 'lib/retab/workflow_tests/assertion_schema_dep.rb', line 15

def output_handle_id
  @output_handle_id
end

#schema_pathObject

Returns the value of attribute schema_path.



15
16
17
# File 'lib/retab/workflow_tests/assertion_schema_dep.rb', line 15

def schema_path
  @schema_path
end

#subtree_hashObject

Returns the value of attribute subtree_hash.



15
16
17
# File 'lib/retab/workflow_tests/assertion_schema_dep.rb', line 15

def subtree_hash
  @subtree_hash
end