Sha256: f93f74677960c3776566e28ee22609b86c48f1e3ca1da9e6a214cab79a60afc6

Contents?: true

Size: 320 Bytes

Versions: 19

Compression:

Stored size: 320 Bytes

Contents

module Elastic::Results
  class Root < HitCollection
    attr_reader :aggregations, :total

    def initialize(_hits, _total, _aggs)
      super _hits
      @total = _total
      @aggregations = Aggregations.new _aggs
    end

    def traverse(&_block)
      super
      aggregations.traverse(&_block)
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
elastic-rails-1.0.4 lib/elastic/results/root.rb
elastic-rails-1.0.3 lib/elastic/results/root.rb
elastic-rails-1.0.2 lib/elastic/results/root.rb
elastic-rails-1.0.1 lib/elastic/results/root.rb
elastic-rails-1.0.0 lib/elastic/results/root.rb
elastic-rails-0.8.7 lib/elastic/results/root.rb
elastic-rails-0.8.6 lib/elastic/results/root.rb
elastic-rails-0.8.5 lib/elastic/results/root.rb
elastic-rails-0.8.4 lib/elastic/results/root.rb
elastic-rails-0.8.3 lib/elastic/results/root.rb
elastic-rails-0.8.2 lib/elastic/results/root.rb
elastic-rails-0.8.1 lib/elastic/results/root.rb
elastic-rails-0.8.0 lib/elastic/results/root.rb
elastic-rails-0.7.0 lib/elastic/results/root.rb
elastic-rails-0.6.4 lib/elastic/results/root.rb
elastic-rails-0.6.3 lib/elastic/results/root.rb
elastic-rails-0.6.2 lib/elastic/results/root.rb
elastic-rails-0.6.1 lib/elastic/results/root.rb
elastic-rails-0.6.0 lib/elastic/results/root.rb