class MdlSql::Where
Attributes
concat[RW]
@!attribute col1 [Symbol/String] @!attribute col2 [Symbol/String] @!attribute op [Symbol]
cond1[RW]
@!attribute col1 [Symbol/String] @!attribute col2 [Symbol/String] @!attribute op [Symbol]
cond2[RW]
@!attribute col1 [Symbol/String] @!attribute col2 [Symbol/String] @!attribute op [Symbol]
op[RW]
@!attribute col1 [Symbol/String] @!attribute col2 [Symbol/String] @!attribute op [Symbol]
Public Class Methods
new(opts={})
click to toggle source
# File lib/mdlsql/where.rb, line 26 def initialize opts={} @cond1 = opts[:cond1] @cond2 = opts[:cond2] opts[:op].to_sym if opts[:op].is_a? String opts[:concat].to_sym if opts[:concat].is_a? String @op = opts[:op] @concat = opts[:concat] end