Class: Arel::Nodes::NamedFunction

Inherits:
Function
  • Object
show all
Includes:
Predications
Defined in:
lib/squeel/adapters/active_record/3.0/compat.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Predications

#as

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

#distinctObject

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

#nameObject

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