Class: Arelastic::Aggregations::Sum

Inherits:
Aggregation show all
Defined in:
lib/arelastic/aggregations/sum.rb

Instance Attribute Summary

Attributes inherited from Aggregation

#meta, #name, #options

Instance Method Summary collapse

Methods inherited from Aggregation

#as_elastic, #initialize, #nested, #reverse_nested

Methods inherited from Nodes::Node

#==, #convert_to_elastic, #read_option!

Methods included from Arelastic::Arities::Binary

#binary

Methods included from Arelastic::Arities::Polyadic

#polyadic

Methods included from Arelastic::Arities::Unary

#unary

Constructor Details

This class inherits a constructor from Arelastic::Aggregations::Aggregation

Instance Method Details

#as_elastic_aggregationObject



4
5
6
# File 'lib/arelastic/aggregations/sum.rb', line 4

def as_elastic_aggregation
  {'sum' => options}
end