Class: EagleSearch::Interpreter::Aggregation

Inherits:
Object
  • Object
show all
Defined in:
lib/eagle_search/interpreter/aggregation.rb

Instance Method Summary collapse

Constructor Details

#initialize(aggregations) ⇒ Aggregation

Returns a new instance of Aggregation.



3
4
5
# File 'lib/eagle_search/interpreter/aggregation.rb', line 3

def initialize(aggregations)
  @aggregations = aggregations
end

Instance Method Details

#payloadObject



7
8
9
# File 'lib/eagle_search/interpreter/aggregation.rb', line 7

def payload
  @payload ||= build_aggregation(@aggregations)
end