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