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