Class: Arel::Nodes::NamedFunction
- Inherits:
-
Function
- Object
- Function
- Arel::Nodes::NamedFunction
- Includes:
- Predications
- Defined in:
- lib/squeel/adapters/active_record/3.0/compat.rb
Instance Attribute Summary collapse
-
#distinct ⇒ Object
Returns the value of attribute distinct.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, expr, aliaz = nil) ⇒ NamedFunction
constructor
A new instance of NamedFunction.
Methods included from Predications
Constructor Details
#initialize(name, expr, aliaz = nil) ⇒ NamedFunction
Returns a new instance of NamedFunction.
43 44 45 46 47 |
# File 'lib/squeel/adapters/active_record/3.0/compat.rb', line 43 def initialize name, expr, aliaz = nil super(expr, aliaz) @name = name @distinct = false end |
Instance Attribute Details
#distinct ⇒ Object
Returns the value of attribute distinct.
39 40 41 |
# File 'lib/squeel/adapters/active_record/3.0/compat.rb', line 39 def distinct @distinct end |
#name ⇒ Object
Returns the value of attribute name.
39 40 41 |
# File 'lib/squeel/adapters/active_record/3.0/compat.rb', line 39 def name @name end |