class Elastic::Results::BucketCollection

Public Class Methods

new(_buckets) click to toggle source
# File lib/elastic/results/bucket_collection.rb, line 8
def initialize(_buckets)
  @buckets = _buckets
end

Public Instance Methods

traverse(&_block) click to toggle source
Calls superclass method Elastic::Results::Base#traverse
# File lib/elastic/results/bucket_collection.rb, line 12
def traverse(&_block)
  super
  @buckets.each { |b| b.traverse(&_block) }
end