Module: Omnis::Query::ClassMethods
- Included in:
- MongoQuery::ClassMethods
- Defined in:
- lib/omnis/query.rb
Instance Method Summary collapse
Instance Method Details
#param(name, operator, opts = {}, &block) ⇒ Object
53 54 55 56 57 |
# File 'lib/omnis/query.rb', line 53 def param(name, operator, opts={}, &block) Omnis::Query::Param.new(name, operator, opts, &block).tap do |param| params[param.name] = param end end |
#params ⇒ Object
49 50 51 |
# File 'lib/omnis/query.rb', line 49 def params @params ||= {} end |