Class: Retab::TriggerInfo

Inherits:
Retab::Types::BaseModel
  • Object
show all
Defined in:
lib/retab/workflow_runs/trigger_info.rb

Constant Summary collapse

HASH_ATTRS =
{
  type: :type
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ TriggerInfo

Returns a new instance of TriggerInfo.



14
15
16
17
18
# File 'lib/retab/workflow_runs/trigger_info.rb', line 14

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @type = hash[:type]
end

Instance Attribute Details

#typeObject

Returns the value of attribute type.



12
13
14
# File 'lib/retab/workflow_runs/trigger_info.rb', line 12

def type
  @type
end