Class: SQL::Composer::Nodes::Operations::Or

Inherits:
Core
  • Object
show all
Defined in:
lib/sql/composer/nodes/operations/or.rb

Instance Attribute Summary

Attributes inherited from Core

#id, #options

Instance Method Summary collapse

Methods inherited from Core

#backend, #fetch, #initialize, #quote

Constructor Details

This class inherits a constructor from SQL::Composer::Nodes::Core

Instance Method Details

#leftObject



10
11
12
# File 'lib/sql/composer/nodes/operations/or.rb', line 10

def left
  fetch(:left)
end

#rightObject



14
15
16
# File 'lib/sql/composer/nodes/operations/or.rb', line 14

def right
  fetch(:right)
end

#to_sObject



18
19
20
# File 'lib/sql/composer/nodes/operations/or.rb', line 18

def to_s
  "(#{left.to_s}) OR (#{right.to_s})"
end