Class: Retab::ExperimentMetricDocumentRef
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::ExperimentMetricDocumentRef
- Defined in:
- lib/retab/experiment_run_metrics/experiment_metric_document_ref.rb
Constant Summary collapse
- HASH_ATTRS =
{ id: :id, filename: :filename }.freeze
Instance Attribute Summary collapse
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#id ⇒ Object
Returns the value of attribute id.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ ExperimentMetricDocumentRef
constructor
A new instance of ExperimentMetricDocumentRef.
Methods inherited from Types::BaseModel
#inspect, normalize, #to_h, #to_json
Constructor Details
#initialize(json) ⇒ ExperimentMetricDocumentRef
Returns a new instance of ExperimentMetricDocumentRef.
17 18 19 20 21 |
# File 'lib/retab/experiment_run_metrics/experiment_metric_document_ref.rb', line 17 def initialize(json) hash = self.class.normalize(json) @id = hash[:id] @filename = hash[:filename] end |
Instance Attribute Details
#filename ⇒ Object
Returns the value of attribute filename.
13 14 15 |
# File 'lib/retab/experiment_run_metrics/experiment_metric_document_ref.rb', line 13 def filename @filename end |
#id ⇒ Object
Returns the value of attribute id.
13 14 15 |
# File 'lib/retab/experiment_run_metrics/experiment_metric_document_ref.rb', line 13 def id @id end |