Class: Elasticsearch::DSL::Search::AggregationsCollection

Inherits:
Hash
  • Object
show all
Defined in:
lib/elasticsearch/dsl/search/aggregation.rb

Instance Method Summary collapse

Instance Method Details

#to_hashObject



27
28
29
# File 'lib/elasticsearch/dsl/search/aggregation.rb', line 27

def to_hash
  @hash ||= Hash[map { |k,v| [k, v.to_hash] }]
end