Class: Rafflesia::CorpuReleasePlannerObjectDelta
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::CorpuReleasePlannerObjectDelta
- Defined in:
- lib/rafflesia/datasets/corpu_release_planner_object_delta.rb
Constant Summary collapse
- HASH_ATTRS =
{ baseline_expected_new_candidates_per_mb: :baseline_expected_new_candidates_per_mb, baseline_rank: :baseline_rank, baseline_read_yield_adjusted_score: :baseline_read_yield_adjusted_score, baseline_read_yield_source: :baseline_read_yield_source, calibrated_expected_new_candidates_per_mb: :calibrated_expected_new_candidates_per_mb, calibrated_rank: :calibrated_rank, calibrated_read_yield_adjusted_score: :calibrated_read_yield_adjusted_score, calibrated_read_yield_source: :calibrated_read_yield_source, query_id: :query_id, rank_delta: :rank_delta, uri: :uri }.freeze
Instance Attribute Summary collapse
-
#baseline_expected_new_candidates_per_mb ⇒ Object
Returns the value of attribute baseline_expected_new_candidates_per_mb.
-
#baseline_rank ⇒ Object
Returns the value of attribute baseline_rank.
-
#baseline_read_yield_adjusted_score ⇒ Object
Returns the value of attribute baseline_read_yield_adjusted_score.
-
#baseline_read_yield_source ⇒ Object
Returns the value of attribute baseline_read_yield_source.
-
#calibrated_expected_new_candidates_per_mb ⇒ Object
Returns the value of attribute calibrated_expected_new_candidates_per_mb.
-
#calibrated_rank ⇒ Object
Returns the value of attribute calibrated_rank.
-
#calibrated_read_yield_adjusted_score ⇒ Object
Returns the value of attribute calibrated_read_yield_adjusted_score.
-
#calibrated_read_yield_source ⇒ Object
Returns the value of attribute calibrated_read_yield_source.
-
#query_id ⇒ Object
Returns the value of attribute query_id.
-
#rank_delta ⇒ Object
Returns the value of attribute rank_delta.
-
#uri ⇒ Object
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(json) ⇒ CorpuReleasePlannerObjectDelta
constructor
A new instance of CorpuReleasePlannerObjectDelta.
Constructor Details
#initialize(json) ⇒ CorpuReleasePlannerObjectDelta
Returns a new instance of CorpuReleasePlannerObjectDelta.
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/rafflesia/datasets/corpu_release_planner_object_delta.rb', line 35 def initialize(json) super() hash = self.class.normalize(json) @baseline_expected_new_candidates_per_mb = hash[:baseline_expected_new_candidates_per_mb] @baseline_rank = hash[:baseline_rank] @baseline_read_yield_adjusted_score = hash[:baseline_read_yield_adjusted_score] @baseline_read_yield_source = hash[:baseline_read_yield_source] @calibrated_expected_new_candidates_per_mb = hash[:calibrated_expected_new_candidates_per_mb] @calibrated_rank = hash[:calibrated_rank] @calibrated_read_yield_adjusted_score = hash[:calibrated_read_yield_adjusted_score] @calibrated_read_yield_source = hash[:calibrated_read_yield_source] @query_id = hash[:query_id] @rank_delta = hash[:rank_delta] @uri = hash[:uri] end |
Instance Attribute Details
#baseline_expected_new_candidates_per_mb ⇒ Object
Returns the value of attribute baseline_expected_new_candidates_per_mb.
22 23 24 |
# File 'lib/rafflesia/datasets/corpu_release_planner_object_delta.rb', line 22 def baseline_expected_new_candidates_per_mb @baseline_expected_new_candidates_per_mb end |
#baseline_rank ⇒ Object
Returns the value of attribute baseline_rank.
22 23 24 |
# File 'lib/rafflesia/datasets/corpu_release_planner_object_delta.rb', line 22 def baseline_rank @baseline_rank end |
#baseline_read_yield_adjusted_score ⇒ Object
Returns the value of attribute baseline_read_yield_adjusted_score.
22 23 24 |
# File 'lib/rafflesia/datasets/corpu_release_planner_object_delta.rb', line 22 def baseline_read_yield_adjusted_score @baseline_read_yield_adjusted_score end |
#baseline_read_yield_source ⇒ Object
Returns the value of attribute baseline_read_yield_source.
22 23 24 |
# File 'lib/rafflesia/datasets/corpu_release_planner_object_delta.rb', line 22 def baseline_read_yield_source @baseline_read_yield_source end |
#calibrated_expected_new_candidates_per_mb ⇒ Object
Returns the value of attribute calibrated_expected_new_candidates_per_mb.
22 23 24 |
# File 'lib/rafflesia/datasets/corpu_release_planner_object_delta.rb', line 22 def calibrated_expected_new_candidates_per_mb @calibrated_expected_new_candidates_per_mb end |
#calibrated_rank ⇒ Object
Returns the value of attribute calibrated_rank.
22 23 24 |
# File 'lib/rafflesia/datasets/corpu_release_planner_object_delta.rb', line 22 def calibrated_rank @calibrated_rank end |
#calibrated_read_yield_adjusted_score ⇒ Object
Returns the value of attribute calibrated_read_yield_adjusted_score.
22 23 24 |
# File 'lib/rafflesia/datasets/corpu_release_planner_object_delta.rb', line 22 def calibrated_read_yield_adjusted_score @calibrated_read_yield_adjusted_score end |
#calibrated_read_yield_source ⇒ Object
Returns the value of attribute calibrated_read_yield_source.
22 23 24 |
# File 'lib/rafflesia/datasets/corpu_release_planner_object_delta.rb', line 22 def calibrated_read_yield_source @calibrated_read_yield_source end |
#query_id ⇒ Object
Returns the value of attribute query_id.
22 23 24 |
# File 'lib/rafflesia/datasets/corpu_release_planner_object_delta.rb', line 22 def query_id @query_id end |
#rank_delta ⇒ Object
Returns the value of attribute rank_delta.
22 23 24 |
# File 'lib/rafflesia/datasets/corpu_release_planner_object_delta.rb', line 22 def rank_delta @rank_delta end |
#uri ⇒ Object
Returns the value of attribute uri.
22 23 24 |
# File 'lib/rafflesia/datasets/corpu_release_planner_object_delta.rb', line 22 def uri @uri end |