Class: Retab::CreateExperimentRunRequest

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

Constant Summary collapse

HASH_ATTRS =
{
  experiment_id: :experiment_id,
  workflow_id: :workflow_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) ⇒ CreateExperimentRunRequest

Returns a new instance of CreateExperimentRunRequest.



17
18
19
20
21
# File 'lib/retab/experiment_runs/create_experiment_run_request.rb', line 17

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

Instance Attribute Details

#experiment_idObject

Returns the value of attribute experiment_id.



13
14
15
# File 'lib/retab/experiment_runs/create_experiment_run_request.rb', line 13

def experiment_id
  @experiment_id
end

#workflow_idObject

Returns the value of attribute workflow_id.



13
14
15
# File 'lib/retab/experiment_runs/create_experiment_run_request.rb', line 13

def workflow_id
  @workflow_id
end