Class: Arel::Nodes::SelectCore
- Defined in:
- lib/arel/nodes/select_core.rb
Instance Attribute Summary collapse
-
#froms ⇒ Object
Returns the value of attribute froms.
-
#groups ⇒ Object
Returns the value of attribute groups.
-
#having ⇒ Object
Returns the value of attribute having.
-
#projections ⇒ Object
Returns the value of attribute projections.
-
#top ⇒ Object
Returns the value of attribute top.
-
#wheres ⇒ Object
Returns the value of attribute wheres.
Instance Method Summary collapse
-
#initialize ⇒ SelectCore
constructor
A new instance of SelectCore.
- #initialize_copy(other) ⇒ Object
Methods inherited from Node
#and, #each, #not, #or, #to_sql
Constructor Details
#initialize ⇒ SelectCore
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
#froms ⇒ Object
Returns the value of attribute froms.
4 5 6 |
# File 'lib/arel/nodes/select_core.rb', line 4 def froms @froms end |
#groups ⇒ Object
Returns the value of attribute groups.
4 5 6 |
# File 'lib/arel/nodes/select_core.rb', line 4 def groups @groups end |
#having ⇒ Object
Returns the value of attribute having.
5 6 7 |
# File 'lib/arel/nodes/select_core.rb', line 5 def having @having end |
#projections ⇒ Object
Returns the value of attribute projections.
4 5 6 |
# File 'lib/arel/nodes/select_core.rb', line 4 def projections @projections end |
#top ⇒ Object
Returns the value of attribute top.
4 5 6 |
# File 'lib/arel/nodes/select_core.rb', line 4 def top @top end |
#wheres ⇒ Object
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 |