class Arelastic::Aggregations::Nested
Attributes
path[RW]
Public Class Methods
new(name, path, aggs)
click to toggle source
Calls superclass method
Arelastic::Aggregations::Bucket::new
# File lib/arelastic/aggregations/nested.rb, line 6 def initialize(name, path, aggs) super name, aggs: aggs @path = path end
Public Instance Methods
as_elastic_aggregation()
click to toggle source
Calls superclass method
Arelastic::Aggregations::Bucket#as_elastic_aggregation
# File lib/arelastic/aggregations/nested.rb, line 11 def as_elastic_aggregation {"nested" => { "path" => path }}.merge(super) end