Class: Elastic::Results::BucketCollection
- Extended by:
- Forwardable
- Includes:
- Enumerable
- Defined in:
- lib/elastic/results/bucket_collection.rb
Instance Method Summary collapse
-
#initialize(_buckets) ⇒ BucketCollection
constructor
A new instance of BucketCollection.
- #traverse(&_block) ⇒ Object
Methods inherited from Base
Methods included from Support::Traversable
Constructor Details
#initialize(_buckets) ⇒ BucketCollection
Returns a new instance of BucketCollection.
8 9 10 |
# File 'lib/elastic/results/bucket_collection.rb', line 8 def initialize(_buckets) @buckets = _buckets end |
Instance Method Details
#traverse(&_block) ⇒ Object
12 13 14 15 |
# File 'lib/elastic/results/bucket_collection.rb', line 12 def traverse(&_block) super @buckets.each { |b| b.traverse(&_block) } end |