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