Module: Arel::Attribute::Expressions
- Included in:
- Arel::Attribute, SqlLiteral
- Defined in:
- lib/arel/algebra/attributes/attribute.rb
Instance Method Summary collapse
- #average ⇒ Object
- #count(distinct = false) ⇒ Object
- #maximum ⇒ Object
- #minimum ⇒ Object
- #sum ⇒ Object
Instance Method Details
#average ⇒ Object
224 225 226 |
# File 'lib/arel/algebra/attributes/attribute.rb', line 224 def average Average.new(self) end |
#count(distinct = false) ⇒ Object
208 209 210 |
# File 'lib/arel/algebra/attributes/attribute.rb', line 208 def count(distinct = false) distinct ? Distinct.new(self).count : Count.new(self) end |
#maximum ⇒ Object
216 217 218 |
# File 'lib/arel/algebra/attributes/attribute.rb', line 216 def maximum Maximum.new(self) end |