Class: Trample::Aggregation::Buckets

Inherits:
Array
  • Object
show all
Defined in:
lib/trample/aggregation.rb

Instance Method Summary collapse

Instance Method Details

#<<(entry) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/trample/aggregation.rb', line 6

def <<(entry)
  if entry.is_a?(Hash)
    super(Bucket.new(entry))
  else
    super
  end
end