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