Class: Retab::ErrorWorkflowExperimentResult

Inherits:
Types::BaseModel show all
Defined in:
lib/retab/experiment_run_results/error_workflow_experiment_result.rb

Constant Summary collapse

HASH_ATTRS =
{
  status: :status,
  message: :message,
  details: :details
}.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) ⇒ ErrorWorkflowExperimentResult

Returns a new instance of ErrorWorkflowExperimentResult.



19
20
21
22
23
24
# File 'lib/retab/experiment_run_results/error_workflow_experiment_result.rb', line 19

def initialize(json)
  hash = self.class.normalize(json)
  @status = hash[:status]
  @message = hash[:message]
  @details = hash[:details] ? Retab::ErrorDetails.new(hash[:details]) : nil
end

Instance Attribute Details

#detailsObject

Returns the value of attribute details.



14
15
16
# File 'lib/retab/experiment_run_results/error_workflow_experiment_result.rb', line 14

def details
  @details
end

#messageObject

Returns the value of attribute message.



14
15
16
# File 'lib/retab/experiment_run_results/error_workflow_experiment_result.rb', line 14

def message
  @message
end

#statusObject

Returns the value of attribute status.



14
15
16
# File 'lib/retab/experiment_run_results/error_workflow_experiment_result.rb', line 14

def status
  @status
end