Class: Elasticated::RangeAggregationEvaluator

Inherits:
QueryAggregations show all
Includes:
Mixins::BlockEvaluation
Defined in:
lib/elasticated/aggregations/range_aggregation_evaluator.rb

Instance Attribute Summary collapse

Attributes inherited from QueryAggregations

#_aggregations

Instance Method Summary collapse

Methods included from Mixins::BlockEvaluation

#evaluate

Methods inherited from QueryAggregations

#build, #merge!, #parse

Methods included from Mixins::Inspectionable

#inspect, #text_for_inspect

Methods included from Mixins::Clonable

#==, #clone

Constructor Details

#initializeRangeAggregationEvaluator

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_builderObject

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_rangesObject



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