class Elasticband::Aggregation::Filter
Attributes
filter[RW]
options[RW]
Public Class Methods
new(name, filter, options = {})
click to toggle source
Calls superclass method
Elasticband::Aggregation::new
# File lib/elasticband/aggregation/filter.rb, line 6 def initialize(name, filter, options = {}) super(name) self.filter = filter self.options = options end
Public Instance Methods
to_h()
click to toggle source
Calls superclass method
Elasticband::Aggregation#to_h
# File lib/elasticband/aggregation/filter.rb, line 12 def to_h super(aggregation_hash) end
Private Instance Methods
aggregation_hash()
click to toggle source
# File lib/elasticband/aggregation/filter.rb, line 18 def aggregation_hash { filter: filter.to_h }.merge!(options) end