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