Class: Retab::ExperimentRunTrigger

Inherits:
Types::BaseModel show all
Defined in:
lib/retab/experiment_runs/experiment_run_trigger.rb

Constant Summary collapse

HASH_ATTRS =
{
  type: :type
}.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) ⇒ ExperimentRunTrigger

Returns a new instance of ExperimentRunTrigger.



14
15
16
17
# File 'lib/retab/experiment_runs/experiment_run_trigger.rb', line 14

def initialize(json)
  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/experiment_runs/experiment_run_trigger.rb', line 12

def type
  @type
end