Class: Rooq::ArithmeticExpression

Inherits:
Expression show all
Extended by:
T::Sig
Defined in:
lib/rooq/expression.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Expression

#%, #*, #+, #-, #/, #as, #asc, #between, #desc, #eq, #gt, #gte, #in, #is_not_null, #is_null, #like, #lt, #lte, #ne, #to_sql

Constructor Details

#initialize(left, operator, right) ⇒ void

Parameters:



145
146
147
148
149
150
# File 'lib/rooq/expression.rb', line 145

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

Instance Attribute Details

#leftExpression, Numeric (readonly)

Returns:



136
137
138
# File 'lib/rooq/expression.rb', line 136

def left
  @left
end

#operatorSymbol (readonly)

Returns:

  • (Symbol)


139
140
141
# File 'lib/rooq/expression.rb', line 139

def operator
  @operator
end

#rightExpression, Numeric (readonly)

Returns:



142
143
144
# File 'lib/rooq/expression.rb', line 142

def right
  @right
end