Module: Omnis::MongoQuery::InstanceMethods
- Includes:
- Operators
- Defined in:
- lib/omnis/mongo_query.rb
Constant Summary
Constants included from Operators
Instance Attribute Summary collapse
-
#extracted_operators ⇒ Object
readonly
Returns the value of attribute extracted_operators.
Instance Method Summary collapse
Instance Attribute Details
#extracted_operators ⇒ Object (readonly)
Returns the value of attribute extracted_operators.
40 41 42 |
# File 'lib/omnis/mongo_query.rb', line 40 def extracted_operators @extracted_operators end |
Instance Method Details
#items_per_page ⇒ Object
49 50 51 |
# File 'lib/omnis/mongo_query.rb', line 49 def items_per_page self.class.items_per_page || 20 end |
#to_mongo ⇒ Object
42 43 44 45 46 47 |
# File 'lib/omnis/mongo_query.rb', line 42 def to_mongo extracted_operators = extract OpenStruct.new({ :selector => mongo_selector(extracted_operators), :opts => mongo_opts(extracted_operators), :param_names => extracted_param_names(extracted_operators)}) end |