Class: Retab::ExperimentMetricDocumentRef

Inherits:
Types::BaseModel show all
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

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) ⇒ 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

#filenameObject

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

#idObject

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