Method: Moped::Protocol::Update#initialize
- Defined in:
- lib/moped/protocol/update.rb
#initialize(database, collection, selector, update, options = {}) ⇒ Update
Create a new update command. The database and collection arguments are joined together to set the full_collection_name.
89 90 91 92 93 94 95 96 97 98 |
# File 'lib/moped/protocol/update.rb', line 89 def initialize(database, collection, selector, update, = {}) @database = database @collection = collection @full_collection_name = "#{database}.#{collection}" @selector = selector @update = update @request_id = [:request_id] @flags = [:flags] end |