Class: SqlQueryExecutor::Operators::In
- Defined in:
- lib/sql_query_executor/operators/in.rb
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from SqlQueryExecutor::Operators::Base
Instance Method Details
#execute!(result) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/sql_query_executor/operators/in.rb', line 6 def execute!(result) result = @collection.select do |record| value = record.send(@field) @value.send('include?', value) end end |