Class: Elastic::Results::HitCollection

Inherits:
ScoredCollection show all
Defined in:
lib/elastic/results/hit_collection.rb

Direct Known Subclasses

Root

Instance Method Summary collapse

Methods inherited from ScoredCollection

#[], #count, #each, #each_with_score, #initialize, #last, #map_with_score, #traverse

Methods inherited from Base

#as_value, #traverse

Methods included from Support::Traversable

#pick_nodes, #traverse

Constructor Details

This class inherits a constructor from Elastic::Results::ScoredCollection

Instance Method Details

#each_hit(&_block) ⇒ Object



3
4
5
# File 'lib/elastic/results/hit_collection.rb', line 3

def each_hit(&_block)
  collection.each(&_block)
end