module DataMapper::Aggregates::Operators
Public Instance Methods
avg()
click to toggle source
# File lib/dm-aggregates/operators.rb, line 16 def avg DataMapper::Query::Operator.new(self, :avg) end
count()
click to toggle source
# File lib/dm-aggregates/operators.rb, line 4 def count DataMapper::Query::Operator.new(self, :count) end
max()
click to toggle source
# File lib/dm-aggregates/operators.rb, line 12 def max DataMapper::Query::Operator.new(self, :max) end
min()
click to toggle source
# File lib/dm-aggregates/operators.rb, line 8 def min DataMapper::Query::Operator.new(self, :min) end
sum()
click to toggle source
# File lib/dm-aggregates/operators.rb, line 20 def sum DataMapper::Query::Operator.new(self, :sum) end