This class wraps the MongoDB master database.
Create the new database writer. Will create a collection from the master database.
@example Create a new wrapped master.
Master.new(db, "testing")
@param [ Mongo::DB ] master The master database. @param [ String ] name The name of the database. @param [ Hash ] options The collection options.
@option options [ true, false ] :capped If the collection is capped. @option options [ Integer ] :size The capped collection size. @option options [ Integer ] :max The maximum number of docs in the
capped collection.
# File lib/mongoid/collections/master.rb, line 39 def initialize(master, name, options = {}) @collection = master.create_collection(name, options) end
Generated with the Darkfish Rdoc Generator 2.