class Elastic::Results::Root

Attributes

aggregations[R]
total[R]

Public Class Methods

new(_hits, _total, _aggs) click to toggle source
Calls superclass method
# File lib/elastic/results/root.rb, line 5
def initialize(_hits, _total, _aggs)
  super _hits
  @total = _total
  @aggregations = Aggregations.new _aggs
end

Public Instance Methods

traverse(&_block) click to toggle source
Calls superclass method
# File lib/elastic/results/root.rb, line 11
def traverse(&_block)
  super
  aggregations.traverse(&_block)
end