Class: Retab::ManualTrigger

Inherits:
Types::BaseModel show all
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

Attributes inherited from Types::BaseModel

#last_response

Instance Method Summary collapse

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

#typeObject

Returns the value of attribute type.



13
14
15
# File 'lib/retab/workflow_runs/manual_trigger.rb', line 13

def type
  @type
end

#user_idObject

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