Class: SqlQueryExecutor::Operators::Default
- Defined in:
- lib/sql_query_executor/operators/default.rb
Constant Summary collapse
- SELECTORS =
{ "==" => nil, ">" => "$gt", "<" => "$lt", ">=" => "$gte", "<=" => "$lte", "!=" => "$ne" }
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from SqlQueryExecutor::Operators::Base
Instance Method Details
#selector ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/sql_query_executor/operators/default.rb', line 15 def selector initialize_attributes operator = SELECTORS[@operator] { @field => operator ? {operator => @value} : @value} end |