Class: Retab::WorkflowTestRunSingleScope
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::WorkflowTestRunSingleScope
- 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
-
#test_id ⇒ Object
Returns the value of attribute test_id.
-
#type ⇒ Object
Returns the value of attribute type.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ WorkflowTestRunSingleScope
constructor
A new instance of WorkflowTestRunSingleScope.
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_id ⇒ Object
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 |
#type ⇒ Object
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 |