Class: Arelastic::Aggregations::Nested
- Inherits:
-
Aggregation
- Object
- Nodes::Node
- Aggregation
- Arelastic::Aggregations::Nested
- Defined in:
- lib/arelastic/aggregations/nested.rb
Instance Attribute Summary collapse
-
#aggregations ⇒ Object
Returns the value of attribute aggregations.
-
#path ⇒ Object
Returns the value of attribute path.
Attributes inherited from Aggregation
Instance Method Summary collapse
- #as_elastic ⇒ Object
-
#initialize(name, path, aggregations) ⇒ Nested
constructor
HashGroup.
Methods inherited from Aggregation
#as_elastic_aggregation, #nested
Methods inherited from Nodes::Node
Methods included from Arelastic::Arities::Binary
Methods included from Arelastic::Arities::Polyadic
Methods included from Arelastic::Arities::Unary
Constructor Details
#initialize(name, path, aggregations) ⇒ Nested
HashGroup
7 8 9 10 11 |
# File 'lib/arelastic/aggregations/nested.rb', line 7 def initialize name, path, aggregations super name @path = path @aggregations = aggregations end |
Instance Attribute Details
#aggregations ⇒ Object
Returns the value of attribute aggregations.
4 5 6 |
# File 'lib/arelastic/aggregations/nested.rb', line 4 def aggregations @aggregations end |
#path ⇒ Object
Returns the value of attribute path.
4 5 6 |
# File 'lib/arelastic/aggregations/nested.rb', line 4 def path @path end |