Method: Elasticated::QueryAggregations#method_missing
- Defined in:
- lib/elasticated/query_aggregations.rb
#method_missing(method_name, *args, &block) ⇒ Object (private)
43 44 45 46 47 48 49 50 51 |
# File 'lib/elasticated/query_aggregations.rb', line 43 def method_missing(method_name, *args, &block) agg_class = get_aggregation_class method_name if agg_class aggregation = agg_class.new(*args, &block) add_aggregation aggregation else super end end |