Class: Arel::Average

Inherits:
Expression show all
Defined in:
lib/arel/algebra/expression.rb,
lib/arel/engines/sql/primitives.rb

Instance Method Summary collapse

Methods inherited from Expression

#aggregation?, #initialize, #inspect, #to_sql

Methods included from Expression::Transformations

#as, #bind, #to_attribute

Methods inherited from Attribute

#aggregation?, #column, #eval, #format, #initialize, #inspect, #named?, #to_sql

Methods included from Arel::Attribute::Types

#type_cast, #type_cast_to_numeric, #typecast_error

Methods included from Arel::Attribute::Orderings

#asc, #desc

Methods included from Arel::Attribute::Expressions

#average, #count, #maximum, #minimum, #sum

Methods included from Arel::Attribute::Predications

#eq, #eq_all, #eq_any, #gt, #gt_all, #gt_any, #gteq, #gteq_all, #gteq_any, #in, #in_all, #in_any, #lt, #lt_all, #lt_any, #lteq, #lteq_all, #lteq_any, #matches, #matches_all, #matches_any, #not_eq, #not_eq_all, #not_eq_any, #not_in, #not_in_all, #not_in_any, #not_matches, #not_matches_all, #not_matches_any

Methods included from Arel::Attribute::Congruence

#/, #descends_from?, #find_correlate_in, #history, #join?, #original_attribute, #original_relation, #root

Methods included from Arel::Attribute::Transformations

#as, #bind, #hash, included, #to_attribute

Constructor Details

This class inherits a constructor from Arel::Expression

Instance Method Details

#function_sqlObject



95
# File 'lib/arel/engines/sql/primitives.rb', line 95

def function_sql; 'AVG' end