Class: SQLParser::Statement::ComparisonPredicate

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

Direct Known Subclasses

Equals, Greater, GreaterOrEquals, In, Is, Less, LessOrEquals, Like

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#accept, #to_sql

Constructor Details

#initialize(left, right) ⇒ ComparisonPredicate

Returns a new instance of ComparisonPredicate.



229
230
231
232
# File 'lib/sql-parser/statement.rb', line 229

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

Instance Attribute Details

#leftObject (readonly)

Returns the value of attribute left.



234
235
236
# File 'lib/sql-parser/statement.rb', line 234

def left
  @left
end

#rightObject (readonly)

Returns the value of attribute right.



235
236
237
# File 'lib/sql-parser/statement.rb', line 235

def right
  @right
end