Class: Retab::ExperimentMetricsMissingError
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::ExperimentMetricsMissingError
- Defined in:
- lib/retab/experiment_run_metrics/experiment_metrics_missing_error.rb
Constant Summary collapse
- HASH_ATTRS =
{ kind: :kind, error: :error, experiment_id: :experiment_id, message: :message }.freeze
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
-
#experiment_id ⇒ Object
Returns the value of attribute experiment_id.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#message ⇒ Object
Returns the value of attribute message.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ ExperimentMetricsMissingError
constructor
A new instance of ExperimentMetricsMissingError.
Methods inherited from Types::BaseModel
#inspect, normalize, #to_h, #to_json
Constructor Details
#initialize(json) ⇒ ExperimentMetricsMissingError
Returns a new instance of ExperimentMetricsMissingError.
21 22 23 24 25 26 27 |
# File 'lib/retab/experiment_run_metrics/experiment_metrics_missing_error.rb', line 21 def initialize(json) hash = self.class.normalize(json) @kind = hash[:kind] @error = hash[:error] @experiment_id = hash[:experiment_id] @message = hash[:message] end |
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error.
15 16 17 |
# File 'lib/retab/experiment_run_metrics/experiment_metrics_missing_error.rb', line 15 def error @error end |
#experiment_id ⇒ Object
Returns the value of attribute experiment_id.
15 16 17 |
# File 'lib/retab/experiment_run_metrics/experiment_metrics_missing_error.rb', line 15 def experiment_id @experiment_id end |
#kind ⇒ Object
Returns the value of attribute kind.
15 16 17 |
# File 'lib/retab/experiment_run_metrics/experiment_metrics_missing_error.rb', line 15 def kind @kind end |
#message ⇒ Object
Returns the value of attribute message.
15 16 17 |
# File 'lib/retab/experiment_run_metrics/experiment_metrics_missing_error.rb', line 15 def @message end |