Class: Arel::Nodes::Join

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

Direct Known Subclasses

InnerJoin, OuterJoin, StringJoin

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

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

Constructor Details

#initialize(left, right, constraint) ⇒ Join

Returns a new instance of Join.



6
7
8
9
10
# File 'lib/arel/nodes/join.rb', line 6

def initialize left, right, constraint
  @left       = left
  @right      = right
  @constraint = constraint
end

Instance Attribute Details

#constraintObject

Returns the value of attribute constraint.



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

def constraint
  @constraint
end

#leftObject

Returns the value of attribute left.



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

def left
  @left
end

#rightObject

Returns the value of attribute right.



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

def right
  @right
end