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
246 247 248 |
# File 'lib/arel/algebra/attributes/attribute.rb', line 246 def average Average.new(self) end |
#count(distinct = false) ⇒ Object
230 231 232 |
# File 'lib/arel/algebra/attributes/attribute.rb', line 230 def count(distinct = false) distinct ? Distinct.new(self).count : Count.new(self) end |
#maximum ⇒ Object
238 239 240 |
# File 'lib/arel/algebra/attributes/attribute.rb', line 238 def maximum Maximum.new(self) end |