Class: SQLParser::Statement::Arithmetic

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

Direct Known Subclasses

Add, Divide, Modulo, Multiply, Subtract

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#accept, #to_sql

Constructor Details

#initialize(left, right) ⇒ Arithmetic

Returns a new instance of Arithmetic.



442
443
444
445
# File 'lib/sql-parser/statement.rb', line 442

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

Instance Attribute Details

#leftObject (readonly)

Returns the value of attribute left.



447
448
449
# File 'lib/sql-parser/statement.rb', line 447

def left
  @left
end

#rightObject (readonly)

Returns the value of attribute right.



448
449
450
# File 'lib/sql-parser/statement.rb', line 448

def right
  @right
end