Class: Retab::WorkflowTestBlockTarget
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::WorkflowTestBlockTarget
- Defined in:
- lib/retab/workflow_test_runs/workflow_test_block_target.rb
Constant Summary collapse
- HASH_ATTRS =
{ type: :type, block_id: :block_id }.freeze
Instance Attribute Summary collapse
-
#block_id ⇒ Object
Returns the value of attribute block_id.
-
#type ⇒ Object
Returns the value of attribute type.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ WorkflowTestBlockTarget
constructor
A new instance of WorkflowTestBlockTarget.
Methods inherited from Types::BaseModel
#inspect, normalize, #to_h, #to_json
Constructor Details
#initialize(json) ⇒ WorkflowTestBlockTarget
Returns a new instance of WorkflowTestBlockTarget.
17 18 19 20 21 |
# File 'lib/retab/workflow_test_runs/workflow_test_block_target.rb', line 17 def initialize(json) hash = self.class.normalize(json) @type = hash[:type] @block_id = hash[:block_id] end |
Instance Attribute Details
#block_id ⇒ Object
Returns the value of attribute block_id.
13 14 15 |
# File 'lib/retab/workflow_test_runs/workflow_test_block_target.rb', line 13 def block_id @block_id end |
#type ⇒ Object
Returns the value of attribute type.
13 14 15 |
# File 'lib/retab/workflow_test_runs/workflow_test_block_target.rb', line 13 def type @type end |