Class: Rooq::ArithmeticExpression
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
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
136
137
138
|
# File 'lib/rooq/expression.rb', line 136
def left
@left
end
|
#operator ⇒ Symbol
139
140
141
|
# File 'lib/rooq/expression.rb', line 139
def operator
@operator
end
|
142
143
144
|
# File 'lib/rooq/expression.rb', line 142
def right
@right
end
|