Class: EagleSearch::Interpreter::Aggregation
- Inherits:
-
Object
- Object
- EagleSearch::Interpreter::Aggregation
- Defined in:
- lib/eagle_search/interpreter/aggregation.rb
Instance Method Summary collapse
-
#initialize(aggregations) ⇒ Aggregation
constructor
A new instance of Aggregation.
- #payload ⇒ Object
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
#payload ⇒ Object
7 8 9 |
# File 'lib/eagle_search/interpreter/aggregation.rb', line 7 def payload @payload ||= build_aggregation(@aggregations) end |