Class: Rafflesia::CorpuReleasePlannerDeltaArtifact
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::CorpuReleasePlannerDeltaArtifact
- 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
-
#baseline ⇒ Object
Returns the value of attribute baseline.
-
#baseline_planner_mode ⇒ Object
Returns the value of attribute baseline_planner_mode.
-
#baseline_query_profiles_path ⇒ Object
Returns the value of attribute baseline_query_profiles_path.
-
#calibrated ⇒ Object
Returns the value of attribute calibrated.
-
#calibrated_planner_mode ⇒ Object
Returns the value of attribute calibrated_planner_mode.
-
#calibrated_query_profiles_path ⇒ Object
Returns the value of attribute calibrated_query_profiles_path.
-
#calibration_rule_fires ⇒ Object
Returns the value of attribute calibration_rule_fires.
-
#corpus ⇒ Object
Returns the value of attribute corpus.
-
#delta ⇒ Object
Returns the value of attribute delta.
-
#demoted_objects ⇒ Object
Returns the value of attribute demoted_objects.
-
#family ⇒ Object
Returns the value of attribute family.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#promoted_objects ⇒ Object
Returns the value of attribute promoted_objects.
-
#release_id ⇒ Object
Returns the value of attribute release_id.
-
#sequence_planner_calibration_path ⇒ Object
Returns the value of attribute sequence_planner_calibration_path.
Instance Method Summary collapse
-
#initialize(json) ⇒ CorpuReleasePlannerDeltaArtifact
constructor
A new instance of CorpuReleasePlannerDeltaArtifact.
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
#baseline ⇒ Object
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_mode ⇒ Object
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_path ⇒ Object
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 |
#calibrated ⇒ Object
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_mode ⇒ Object
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_path ⇒ Object
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_fires ⇒ Object
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 |
#corpus ⇒ Object
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 |
#delta ⇒ Object
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_objects ⇒ Object
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 |
#family ⇒ Object
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 |
#kind ⇒ Object
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 |
#promoted_objects ⇒ Object
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_id ⇒ Object
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_path ⇒ Object
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 |