Class: Lafcadio::Query::In
- Defined in:
- lib/lafcadio/query/In.rb
Overview
:nodoc:
Instance Attribute Summary
Attributes inherited from Condition
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Condition
#dbFieldName, #getField, #initialize, #not, #primaryKeyField?
Constructor Details
This class inherits a constructor from Lafcadio::Query::Condition
Class Method Details
Instance Method Details
#objectMeets(anObj) ⇒ Object
14 15 16 17 |
# File 'lib/lafcadio/query/In.rb', line 14 def objectMeets(anObj) value = anObj.send @fieldName @searchTerm.index(value) != nil end |
#toSql ⇒ Object
10 11 12 |
# File 'lib/lafcadio/query/In.rb', line 10 def toSql "#{ dbFieldName } in (#{ @searchTerm.join(', ') })" end |