Class: Retab::ExperimentByTargetDocumentMetric
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::ExperimentByTargetDocumentMetric
- Defined in:
- lib/retab/experiment_run_metrics/experiment_by_target_document_metric.rb
Constant Summary collapse
- HASH_ATTRS =
{ id: :id, filename: :filename, score: :score, prior_score: :prior_score, value: :value }.freeze
Instance Attribute Summary collapse
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#id ⇒ Object
Returns the value of attribute id.
-
#prior_score ⇒ Object
Returns the value of attribute prior_score.
-
#score ⇒ Object
Returns the value of attribute score.
-
#value ⇒ Object
Returns the value of attribute value.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ ExperimentByTargetDocumentMetric
constructor
A new instance of ExperimentByTargetDocumentMetric.
Methods inherited from Types::BaseModel
#inspect, normalize, #to_h, #to_json
Constructor Details
#initialize(json) ⇒ ExperimentByTargetDocumentMetric
Returns a new instance of ExperimentByTargetDocumentMetric.
23 24 25 26 27 28 29 30 |
# File 'lib/retab/experiment_run_metrics/experiment_by_target_document_metric.rb', line 23 def initialize(json) hash = self.class.normalize(json) @id = hash[:id] @filename = hash[:filename] @score = hash[:score] @prior_score = hash[:prior_score] @value = hash[:value] end |
Instance Attribute Details
#filename ⇒ Object
Returns the value of attribute filename.
16 17 18 |
# File 'lib/retab/experiment_run_metrics/experiment_by_target_document_metric.rb', line 16 def filename @filename end |
#id ⇒ Object
Returns the value of attribute id.
16 17 18 |
# File 'lib/retab/experiment_run_metrics/experiment_by_target_document_metric.rb', line 16 def id @id end |
#prior_score ⇒ Object
Returns the value of attribute prior_score.
16 17 18 |
# File 'lib/retab/experiment_run_metrics/experiment_by_target_document_metric.rb', line 16 def prior_score @prior_score end |
#score ⇒ Object
Returns the value of attribute score.
16 17 18 |
# File 'lib/retab/experiment_run_metrics/experiment_by_target_document_metric.rb', line 16 def score @score end |
#value ⇒ Object
Returns the value of attribute value.
16 17 18 |
# File 'lib/retab/experiment_run_metrics/experiment_by_target_document_metric.rb', line 16 def value @value end |