Class: Druid::PostAggregation
- Inherits:
-
Object
- Object
- Druid::PostAggregation
- Defined in:
- lib/druid/post_aggregation.rb
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args) ⇒ Object
3 4 5 6 7 |
# File 'lib/druid/post_aggregation.rb', line 3 def method_missing(name, *args) if args.empty? PostAggregationField.new(name) end end |
Instance Method Details
#js(*args) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/druid/post_aggregation.rb', line 9 def js(*args) if args.empty? PostAggregationField.new(:js) else PostAggregationJavascript.new(args.first) end end |