Class: Elastic::Results::ScoredItem
- Defined in:
- lib/elastic/results/scored_item.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#score ⇒ Object
readonly
Returns the value of attribute score.
Instance Method Summary collapse
-
#initialize(_data, _score) ⇒ ScoredItem
constructor
A new instance of ScoredItem.
Methods inherited from Base
Methods included from Support::Traversable
Constructor Details
#initialize(_data, _score) ⇒ ScoredItem
Returns a new instance of ScoredItem.
5 6 7 8 |
# File 'lib/elastic/results/scored_item.rb', line 5 def initialize(_data, _score) @data = _data @score = _score end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
3 4 5 |
# File 'lib/elastic/results/scored_item.rb', line 3 def data @data end |
#score ⇒ Object (readonly)
Returns the value of attribute score.
3 4 5 |
# File 'lib/elastic/results/scored_item.rb', line 3 def score @score end |