Class: Retab::ExperimentTargetConfusionMetric

Inherits:
Types::BaseModel show all
Defined in:
lib/retab/experiment_run_metrics/experiment_target_confusion_metric.rb

Constant Summary collapse

HASH_ATTRS =
{
  self: :self,
  flow_from: :flow_from,
  flow_to: :flow_to
}.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) ⇒ ExperimentTargetConfusionMetric

Returns a new instance of ExperimentTargetConfusionMetric.



19
20
21
22
23
24
# File 'lib/retab/experiment_run_metrics/experiment_target_confusion_metric.rb', line 19

def initialize(json)
  hash = self.class.normalize(json)
  @self = hash[:self]
  @flow_from = hash[:flow_from] || {}
  @flow_to = hash[:flow_to] || {}
end

Instance Attribute Details

#flow_fromObject

Returns the value of attribute flow_from.



14
15
16
# File 'lib/retab/experiment_run_metrics/experiment_target_confusion_metric.rb', line 14

def flow_from
  @flow_from
end

#flow_toObject

Returns the value of attribute flow_to.



14
15
16
# File 'lib/retab/experiment_run_metrics/experiment_target_confusion_metric.rb', line 14

def flow_to
  @flow_to
end

#selfObject

Returns the value of attribute self.



14
15
16
# File 'lib/retab/experiment_run_metrics/experiment_target_confusion_metric.rb', line 14

def self
  @self
end