Class: Retab::WorkflowTestRunSingleScope

Inherits:
Types::BaseModel show all
Defined in:
lib/retab/workflow_test_runs/workflow_test_run_single_scope.rb

Constant Summary collapse

HASH_ATTRS =
{
  type: :type,
  test_id: :test_id
}.freeze

Instance Attribute Summary collapse

Attributes inherited from Types::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Types::BaseModel

deep_symbolize, #inspect, normalize, #to_h, #to_json

Constructor Details

#initialize(json) ⇒ WorkflowTestRunSingleScope

Returns a new instance of WorkflowTestRunSingleScope.



18
19
20
21
22
23
# File 'lib/retab/workflow_test_runs/workflow_test_run_single_scope.rb', line 18

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @type = hash[:type]
  @test_id = hash[:test_id]
end

Instance Attribute Details

#test_idObject

Returns the value of attribute test_id.



13
14
15
# File 'lib/retab/workflow_test_runs/workflow_test_run_single_scope.rb', line 13

def test_id
  @test_id
end

#typeObject

Returns the value of attribute type.



13
14
15
# File 'lib/retab/workflow_test_runs/workflow_test_run_single_scope.rb', line 13

def type
  @type
end