Class: Arel::Nodes::SelectCore

Inherits:
Node
  • Object
show all
Defined in:
lib/arel/nodes/select_core.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#and, #each, #not, #or, #to_sql

Constructor Details

#initializeSelectCore

Returns a new instance of SelectCore.



7
8
9
10
11
12
13
14
# File 'lib/arel/nodes/select_core.rb', line 7

def initialize
  @top         = nil
  @froms       = nil
  @projections = []
  @wheres      = []
  @groups      = []
  @having      = nil
end

Instance Attribute Details

#fromsObject

Returns the value of attribute froms.



4
5
6
# File 'lib/arel/nodes/select_core.rb', line 4

def froms
  @froms
end

#groupsObject

Returns the value of attribute groups.



4
5
6
# File 'lib/arel/nodes/select_core.rb', line 4

def groups
  @groups
end

#havingObject

Returns the value of attribute having.



5
6
7
# File 'lib/arel/nodes/select_core.rb', line 5

def having
  @having
end

#projectionsObject

Returns the value of attribute projections.



4
5
6
# File 'lib/arel/nodes/select_core.rb', line 4

def projections
  @projections
end

#topObject

Returns the value of attribute top.



4
5
6
# File 'lib/arel/nodes/select_core.rb', line 4

def top
  @top
end

#wheresObject

Returns the value of attribute wheres.



4
5
6
# File 'lib/arel/nodes/select_core.rb', line 4

def wheres
  @wheres
end

Instance Method Details

#initialize_copy(other) ⇒ Object



16
17
18
19
20
21
22
23
# File 'lib/arel/nodes/select_core.rb', line 16

def initialize_copy other
  super
  @froms       = @froms.clone if @froms
  @projections = @projections.clone
  @wheres      = @wheres.clone
  @group       = @groups.clone
  @having      = @having.clone if @having
end