Method: Moped::Protocol::Insert#initialize
- Defined in:
- lib/moped/protocol/insert.rb
#initialize(database, collection, documents, options = {}) ⇒ Insert
Create a new insert command. The database and collection arguments are joined together to set the full_collection_name.
78 79 80 81 82 83 84 85 86 |
# File 'lib/moped/protocol/insert.rb', line 78 def initialize(database, collection, documents, = {}) @database = database @collection = collection @full_collection_name = "#{database}.#{collection}" @documents = documents @request_id = [:request_id] @flags = [:flags] end |