Class: SQL::Composer::Nodes::Operations::Eql

Inherits:
Core
  • Object
show all
Defined in:
lib/sql/composer/nodes/operations/eql.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/eql.rb', line 10

def left
  fetch(:left)
end

#or(other) ⇒ Object Also known as: OR



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

def or(other)
  Operations::Or.new(left: self, right: other)
end

#rightObject



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

def right
  fetch(:right)
end

#to_sObject



23
24
25
# File 'lib/sql/composer/nodes/operations/eql.rb', line 23

def to_s
  "#{left.to_s} == #{right.to_s}"
end