Class: Arelastic::Searches::Aggregations
- Inherits:
-
Search
- Object
- Nodes::Node
- Search
- Arelastic::Searches::Aggregations
- Defined in:
- lib/arelastic/searches/aggregations.rb
Instance Attribute Summary collapse
-
#aggs ⇒ Object
Returns the value of attribute aggs.
Instance Method Summary collapse
- #as_elastic ⇒ Object
-
#initialize(*aggs) ⇒ Aggregations
constructor
A new instance of Aggregations.
Methods inherited from Nodes::Node
#==, #convert_to_elastic, #read_option!
Methods included from Arities::Binary
Methods included from Arities::Polyadic
Methods included from Arities::Unary
Constructor Details
#initialize(*aggs) ⇒ Aggregations
Returns a new instance of Aggregations.
6 7 8 |
# File 'lib/arelastic/searches/aggregations.rb', line 6 def initialize *aggs @aggs = aggs.flatten end |
Instance Attribute Details
#aggs ⇒ Object
Returns the value of attribute aggs.
4 5 6 |
# File 'lib/arelastic/searches/aggregations.rb', line 4 def aggs @aggs end |