Class: Arel::Nodes::VariableSet

Inherits:
Node
  • Object
show all
Defined in:
lib/arel/extensions/variable_set.rb

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#to_sql_and_binds

Constructor Details

#initialize(type, args, name, local) ⇒ VariableSet

Returns a new instance of VariableSet.



13
14
15
16
17
18
# File 'lib/arel/extensions/variable_set.rb', line 13

def initialize(type, args, name, local)
  @type = type
  @args = args
  @name = name
  @local = local
end

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args.



9
10
11
# File 'lib/arel/extensions/variable_set.rb', line 9

def args
  @args
end

#localObject (readonly)

Returns the value of attribute local.



11
12
13
# File 'lib/arel/extensions/variable_set.rb', line 11

def local
  @local
end

#nameObject (readonly)

Returns the value of attribute name.



10
11
12
# File 'lib/arel/extensions/variable_set.rb', line 10

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



8
9
10
# File 'lib/arel/extensions/variable_set.rb', line 8

def type
  @type
end