Class: SqlTools::Predicate::Binary

Inherits:
Struct
  • Object
show all
Defined in:
lib/sql_tools/predicate.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#leftObject

Returns the value of attribute left

Returns:

  • (Object)

    the current value of left



3
4
5
# File 'lib/sql_tools/predicate.rb', line 3

def left
  @left
end

#operatorObject

Returns the value of attribute operator

Returns:

  • (Object)

    the current value of operator



3
4
5
# File 'lib/sql_tools/predicate.rb', line 3

def operator
  @operator
end

#rightObject

Returns the value of attribute right

Returns:

  • (Object)

    the current value of right



3
4
5
# File 'lib/sql_tools/predicate.rb', line 3

def right
  @right
end

Instance Method Details

#inspectObject



5
# File 'lib/sql_tools/predicate.rb', line 5

def inspect = to_s

#to_sObject



4
# File 'lib/sql_tools/predicate.rb', line 4

def to_s = "(#{left} #{operator} #{right})"