123456789_123456789_123456789_123456789_123456789_

Module: Arel::Expressions

Do not use. This module is for internal use only.

Instance Method Summary

Instance Method Details

#average

[ GitHub ]

  
# File 'activerecord/lib/arel/expressions.rb', line 21

def average
  Nodes::Avg.new [self]
end

#count(distinct = false)

[ GitHub ]

  
# File 'activerecord/lib/arel/expressions.rb', line 5

def count(distinct = false)
  Nodes::Count.new [self], distinct
end

#extract(field)

[ GitHub ]

  
# File 'activerecord/lib/arel/expressions.rb', line 25

def extract(field)
  Nodes::Extract.new [self], field
end

#maximum

[ GitHub ]

  
# File 'activerecord/lib/arel/expressions.rb', line 13

def maximum
  Nodes::Max.new [self]
end

#minimum

[ GitHub ]

  
# File 'activerecord/lib/arel/expressions.rb', line 17

def minimum
  Nodes::Min.new [self]
end

#sum

[ GitHub ]

  
# File 'activerecord/lib/arel/expressions.rb', line 9

def sum
  Nodes::Sum.new [self]
end