Class: SQL::Statement::SearchCondition

Inherits:
Node
  • Object
show all
Defined in:
lib/sql/statement.rb

Direct Known Subclasses

And, Or

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#accept, #to_sql

Constructor Details

#initialize(left, right) ⇒ SearchCondition

Returns a new instance of SearchCondition.


161
162
163
164
# File 'lib/sql/statement.rb', line 161

def initialize(left, right)
  @left = left
  @right = right
end

Instance Attribute Details

#leftObject (readonly)

Returns the value of attribute left


166
167
168
# File 'lib/sql/statement.rb', line 166

def left
  @left
end

#rightObject (readonly)

Returns the value of attribute right


167
168
169
# File 'lib/sql/statement.rb', line 167

def right
  @right
end