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