Class: Arelastic::Builders::Aggregation
- Inherits:
-
Struct
- Object
- Struct
- Arelastic::Builders::Aggregation
- Defined in:
- lib/arelastic/builders/aggregation.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
3 4 5 |
# File 'lib/arelastic/builders/aggregation.rb', line 3 def name @name end |
Class Method Details
.[](name) ⇒ Object
5 6 7 |
# File 'lib/arelastic/builders/aggregation.rb', line 5 def [](name) new(name) end |
Instance Method Details
#histogram(options) ⇒ Object
14 15 16 |
# File 'lib/arelastic/builders/aggregation.rb', line 14 def histogram Arelastic::Aggregations::Histogram.new name, end |
#terms(options = {}) ⇒ Object
10 11 12 |
# File 'lib/arelastic/builders/aggregation.rb', line 10 def terms = {} Arelastic::Aggregations::Terms.new name, end |