Class: Arel::Nodes::Count
- Defined in:
- lib/arel/nodes/count.rb
Instance Attribute Summary collapse
-
#distinct ⇒ Object
Returns the value of attribute distinct.
Attributes inherited from Function
Instance Method Summary collapse
-
#initialize(expr, distinct = false, aliaz = nil) ⇒ Count
constructor
A new instance of Count.
Methods inherited from Function
Methods inherited from Node
#and, #each, #not, #or, #to_sql
Constructor Details
#initialize(expr, distinct = false, aliaz = nil) ⇒ Count
Returns a new instance of Count.
7 8 9 10 |
# File 'lib/arel/nodes/count.rb', line 7 def initialize expr, distinct = false, aliaz = nil super(expr, aliaz) @distinct = distinct end |
Instance Attribute Details
#distinct ⇒ Object
Returns the value of attribute distinct.
5 6 7 |
# File 'lib/arel/nodes/count.rb', line 5 def distinct @distinct end |