Class: Retab::ErrorWorkflowExperimentResult
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::ErrorWorkflowExperimentResult
- 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
-
#details ⇒ Object
Returns the value of attribute details.
-
#message ⇒ Object
Returns the value of attribute message.
-
#status ⇒ Object
Returns the value of attribute status.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ ErrorWorkflowExperimentResult
constructor
A new instance of ErrorWorkflowExperimentResult.
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
#details ⇒ Object
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 |
#message ⇒ Object
Returns the value of attribute message.
14 15 16 |
# File 'lib/retab/experiment_run_results/error_workflow_experiment_result.rb', line 14 def @message end |
#status ⇒ Object
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 |