Class: SmqlToAR::ConditionTypes::NotIn
- Defined in:
- lib/smql_to_ar/condition_types.rb
Constant Summary collapse
- Operator =
'!|='
- Where =
"%s NOT IN (%s)"
- Expected =
[Array]
Instance Attribute Summary
Attributes inherited from Condition
Instance Method Summary collapse
Methods inherited from Condition
#initialize, try_parse, #verify, #verify_allowed, #verify_column
Constructor Details
This class inherits a constructor from SmqlToAR::ConditionTypes::Condition
Instance Method Details
#build(builder, table) ⇒ Object
176 177 178 179 180 181 182 183 |
# File 'lib/smql_to_ar/condition_types.rb', line 176 def build builder, table builder.wobs (v = builder.vid).to_sym => @value @cols.each do |col| col.joins builder, table builder.where self.class::Where % [ builder.column( table, col), v.to_s] end self end |