class Elastic::Results::Bucket

Attributes

key[R]
total[R]

Public Class Methods

new(_key, _total, _aggs) click to toggle source
Calls superclass method Elastic::Results::Aggregations::new
# File lib/elastic/results/bucket.rb, line 5
def initialize(_key, _total, _aggs)
  @key = _key
  @total = _total
  super _aggs
end

Public Instance Methods

as_value() click to toggle source
# File lib/elastic/results/bucket.rb, line 11
def as_value
  # TODO: return aggregation value if configured as single bucket
  self
end