Module: DataMapper::Aggregates::SymbolOperators
- Included in:
- Symbol
- Defined in:
- lib/dm-aggregates/symbol_operators.rb
Instance Method Summary collapse
Instance Method Details
#avg ⇒ Object
16 17 18 |
# File 'lib/dm-aggregates/symbol_operators.rb', line 16 def avg DataMapper::Query::Operator.new(self, :avg) end |
#count ⇒ Object
4 5 6 |
# File 'lib/dm-aggregates/symbol_operators.rb', line 4 def count DataMapper::Query::Operator.new(self, :count) end |
#max ⇒ Object
12 13 14 |
# File 'lib/dm-aggregates/symbol_operators.rb', line 12 def max DataMapper::Query::Operator.new(self, :max) end |
#min ⇒ Object
8 9 10 |
# File 'lib/dm-aggregates/symbol_operators.rb', line 8 def min DataMapper::Query::Operator.new(self, :min) end |
#sum ⇒ Object
20 21 22 |
# File 'lib/dm-aggregates/symbol_operators.rb', line 20 def sum DataMapper::Query::Operator.new(self, :sum) end |