Class: SQLParser::Statement::Arithmetic

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

Direct Known Subclasses

Add, Divide, 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.



374
375
376
377
# File 'lib/rossoc/statement.rb', line 374

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

Instance Attribute Details

#leftObject (readonly)

Returns the value of attribute left.



379
380
381
# File 'lib/rossoc/statement.rb', line 379

def left
  @left
end

#rightObject (readonly)

Returns the value of attribute right.



379
380
381
# File 'lib/rossoc/statement.rb', line 379

def right
  @right
end