Class: Elasticated::RangeAggregationEvaluator
- Inherits:
-
QueryAggregations
- Object
- QueryAggregations
- Elasticated::RangeAggregationEvaluator
- Includes:
- Mixins::BlockEvaluation
- Defined in:
- lib/elasticated/aggregations/range_aggregation_evaluator.rb
Instance Attribute Summary collapse
-
#_ranges_builder ⇒ Object
Returns the value of attribute _ranges_builder.
Attributes inherited from QueryAggregations
Instance Method Summary collapse
- #build_ranges ⇒ Object
-
#initialize ⇒ RangeAggregationEvaluator
constructor
A new instance of RangeAggregationEvaluator.
- #ranges(&block) ⇒ Object
Methods included from Mixins::BlockEvaluation
Methods inherited from QueryAggregations
Methods included from Mixins::Inspectionable
Methods included from Mixins::Clonable
Constructor Details
#initialize ⇒ RangeAggregationEvaluator
Returns a new instance of RangeAggregationEvaluator.
8 9 10 11 |
# File 'lib/elasticated/aggregations/range_aggregation_evaluator.rb', line 8 def initialize super self._ranges_builder = RangesBuilder.new end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Elasticated::QueryAggregations
Instance Attribute Details
#_ranges_builder ⇒ Object
Returns the value of attribute _ranges_builder.
6 7 8 |
# File 'lib/elasticated/aggregations/range_aggregation_evaluator.rb', line 6 def _ranges_builder @_ranges_builder end |
Instance Method Details
#build_ranges ⇒ Object
17 18 19 |
# File 'lib/elasticated/aggregations/range_aggregation_evaluator.rb', line 17 def build_ranges _ranges_builder.build end |
#ranges(&block) ⇒ Object
13 14 15 |
# File 'lib/elasticated/aggregations/range_aggregation_evaluator.rb', line 13 def ranges(&block) _ranges_builder.evaluate block end |