Class: Rafflesia::CorpuReleasePlannerDeltaArtifact

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/datasets/corpu_release_planner_delta_artifact.rb

Constant Summary collapse

HASH_ATTRS =
{
  baseline: :baseline,
  baseline_planner_mode: :baseline_planner_mode,
  baseline_query_profiles_path: :baseline_query_profiles_path,
  calibrated: :calibrated,
  calibrated_planner_mode: :calibrated_planner_mode,
  calibrated_query_profiles_path: :calibrated_query_profiles_path,
  calibration_rule_fires: :calibration_rule_fires,
  corpus: :corpus,
  delta: :delta,
  demoted_objects: :demoted_objects,
  family: :family,
  kind: :kind,
  promoted_objects: :promoted_objects,
  release_id: :release_id,
  sequence_planner_calibration_path: :sequence_planner_calibration_path
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ CorpuReleasePlannerDeltaArtifact

Returns a new instance of CorpuReleasePlannerDeltaArtifact.



43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# File 'lib/rafflesia/datasets/corpu_release_planner_delta_artifact.rb', line 43

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @baseline = hash[:baseline] ? Rafflesia::CorpuReleasePlannerDeltaMetrics.new(hash[:baseline]) : nil
  @baseline_planner_mode = hash[:baseline_planner_mode]
  @baseline_query_profiles_path = hash[:baseline_query_profiles_path]
  @calibrated = hash[:calibrated] ? Rafflesia::CorpuReleasePlannerDeltaMetrics.new(hash[:calibrated]) : nil
  @calibrated_planner_mode = hash[:calibrated_planner_mode]
  @calibrated_query_profiles_path = hash[:calibrated_query_profiles_path]
  @calibration_rule_fires = (hash[:calibration_rule_fires] || []).map { |item| item ? Rafflesia::CorpuReleasePlannerRuleFire.new(item) : nil }
  @corpus = hash[:corpus]
  @delta = hash[:delta] ? Rafflesia::CorpuReleasePlannerDeltaValues.new(hash[:delta]) : nil
  @demoted_objects = (hash[:demoted_objects] || []).map { |item| item ? Rafflesia::CorpuReleasePlannerObjectDelta.new(item) : nil }
  @family = hash[:family]
  @kind = hash[:kind]
  @promoted_objects = (hash[:promoted_objects] || []).map { |item| item ? Rafflesia::CorpuReleasePlannerObjectDelta.new(item) : nil }
  @release_id = hash[:release_id]
  @sequence_planner_calibration_path = hash[:sequence_planner_calibration_path]
end

Instance Attribute Details

#baselineObject

Returns the value of attribute baseline.



26
27
28
# File 'lib/rafflesia/datasets/corpu_release_planner_delta_artifact.rb', line 26

def baseline
  @baseline
end

#baseline_planner_modeObject

Returns the value of attribute baseline_planner_mode.



26
27
28
# File 'lib/rafflesia/datasets/corpu_release_planner_delta_artifact.rb', line 26

def baseline_planner_mode
  @baseline_planner_mode
end

#baseline_query_profiles_pathObject

Returns the value of attribute baseline_query_profiles_path.



26
27
28
# File 'lib/rafflesia/datasets/corpu_release_planner_delta_artifact.rb', line 26

def baseline_query_profiles_path
  @baseline_query_profiles_path
end

#calibratedObject

Returns the value of attribute calibrated.



26
27
28
# File 'lib/rafflesia/datasets/corpu_release_planner_delta_artifact.rb', line 26

def calibrated
  @calibrated
end

#calibrated_planner_modeObject

Returns the value of attribute calibrated_planner_mode.



26
27
28
# File 'lib/rafflesia/datasets/corpu_release_planner_delta_artifact.rb', line 26

def calibrated_planner_mode
  @calibrated_planner_mode
end

#calibrated_query_profiles_pathObject

Returns the value of attribute calibrated_query_profiles_path.



26
27
28
# File 'lib/rafflesia/datasets/corpu_release_planner_delta_artifact.rb', line 26

def calibrated_query_profiles_path
  @calibrated_query_profiles_path
end

#calibration_rule_firesObject

Returns the value of attribute calibration_rule_fires.



26
27
28
# File 'lib/rafflesia/datasets/corpu_release_planner_delta_artifact.rb', line 26

def calibration_rule_fires
  @calibration_rule_fires
end

#corpusObject

Returns the value of attribute corpus.



26
27
28
# File 'lib/rafflesia/datasets/corpu_release_planner_delta_artifact.rb', line 26

def corpus
  @corpus
end

#deltaObject

Returns the value of attribute delta.



26
27
28
# File 'lib/rafflesia/datasets/corpu_release_planner_delta_artifact.rb', line 26

def delta
  @delta
end

#demoted_objectsObject

Returns the value of attribute demoted_objects.



26
27
28
# File 'lib/rafflesia/datasets/corpu_release_planner_delta_artifact.rb', line 26

def demoted_objects
  @demoted_objects
end

#familyObject

Returns the value of attribute family.



26
27
28
# File 'lib/rafflesia/datasets/corpu_release_planner_delta_artifact.rb', line 26

def family
  @family
end

#kindObject

Returns the value of attribute kind.



26
27
28
# File 'lib/rafflesia/datasets/corpu_release_planner_delta_artifact.rb', line 26

def kind
  @kind
end

Returns the value of attribute promoted_objects.



26
27
28
# File 'lib/rafflesia/datasets/corpu_release_planner_delta_artifact.rb', line 26

def promoted_objects
  @promoted_objects
end

#release_idObject

Returns the value of attribute release_id.



26
27
28
# File 'lib/rafflesia/datasets/corpu_release_planner_delta_artifact.rb', line 26

def release_id
  @release_id
end

#sequence_planner_calibration_pathObject

Returns the value of attribute sequence_planner_calibration_path.



26
27
28
# File 'lib/rafflesia/datasets/corpu_release_planner_delta_artifact.rb', line 26

def sequence_planner_calibration_path
  @sequence_planner_calibration_path
end