Class: SQL::Statement::ComparisonPredicate

Inherits:
Node
  • Object
show all
Defined in:
lib/sql/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.


193
194
195
196
# File 'lib/sql/statement.rb', line 193

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

Instance Attribute Details

#leftObject (readonly)

Returns the value of attribute left


198
199
200
# File 'lib/sql/statement.rb', line 198

def left
  @left
end

#rightObject (readonly)

Returns the value of attribute right


199
200
201
# File 'lib/sql/statement.rb', line 199

def right
  @right
end