# File lib/moped/protocol/query.rb, line 151 def initialize(database, collection, selector, options = {}) @database = database @collection = collection @full_collection_name = "#{database}.#{collection}" @selector = selector @request_id = options[:request_id] @flags = options[:flags] || [] @limit = options[:limit] @skip = options[:skip] @fields = options[:fields] @batch_size = options[:batch_size] end