Method: Moped::Protocol::Query#initialize
- Defined in:
- lib/moped/protocol/query.rb
#initialize(database, collection, selector, options = {}) ⇒ Query
Create a new query command.
101 102 103 104 105 106 107 108 109 110 111 112 |
# File 'lib/moped/protocol/query.rb', line 101 def initialize(database, collection, selector, = {}) @database = database @collection = collection @full_collection_name = "#{database}.#{collection}" @selector = selector @request_id = [:request_id] @flags = [:flags] @limit = [:limit] @skip = [:skip] @fields = [:fields] end |