Class: Retab::RunStepWorkflowTestSource

Inherits:
Types::BaseModel show all
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

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) ⇒ 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_idObject

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_idObject

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

#typeObject

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