Class: Retab::ExperimentByDocumentTargetMetric
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Retab::ExperimentByDocumentTargetMetric
- Defined in:
- lib/retab/experiment_run_metrics/experiment_by_document_target_metric.rb
Constant Summary collapse
- HASH_ATTRS =
{ path: :path, score: :score, prior_score: :prior_score, value: :value }.freeze
Instance Attribute Summary collapse
-
#path ⇒ Object
Returns the value of attribute path.
-
#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) ⇒ ExperimentByDocumentTargetMetric
constructor
A new instance of ExperimentByDocumentTargetMetric.
Methods inherited from Types::BaseModel
#inspect, normalize, #to_h, #to_json
Constructor Details
#initialize(json) ⇒ ExperimentByDocumentTargetMetric
Returns a new instance of ExperimentByDocumentTargetMetric.
21 22 23 24 25 26 27 |
# File 'lib/retab/experiment_run_metrics/experiment_by_document_target_metric.rb', line 21 def initialize(json) hash = self.class.normalize(json) @path = hash[:path] @score = hash[:score] @prior_score = hash[:prior_score] @value = hash[:value] end |
Instance Attribute Details
#path ⇒ Object
Returns the value of attribute path.
15 16 17 |
# File 'lib/retab/experiment_run_metrics/experiment_by_document_target_metric.rb', line 15 def path @path end |
#prior_score ⇒ Object
Returns the value of attribute prior_score.
15 16 17 |
# File 'lib/retab/experiment_run_metrics/experiment_by_document_target_metric.rb', line 15 def prior_score @prior_score end |
#score ⇒ Object
Returns the value of attribute score.
15 16 17 |
# File 'lib/retab/experiment_run_metrics/experiment_by_document_target_metric.rb', line 15 def score @score end |
#value ⇒ Object
Returns the value of attribute value.
15 16 17 |
# File 'lib/retab/experiment_run_metrics/experiment_by_document_target_metric.rb', line 15 def value @value end |