Class: Retab::AssertionSchemaDep
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::AssertionSchemaDep
- 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
-
#depends_on_root ⇒ Object
Returns the value of attribute depends_on_root.
-
#output_handle_id ⇒ Object
Returns the value of attribute output_handle_id.
-
#schema_path ⇒ Object
Returns the value of attribute schema_path.
-
#subtree_hash ⇒ Object
Returns the value of attribute subtree_hash.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ AssertionSchemaDep
constructor
A new instance of AssertionSchemaDep.
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_root ⇒ Object
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_id ⇒ Object
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_path ⇒ Object
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_hash ⇒ Object
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 |