Class Mongoid::Collections::Master
In: lib/mongoid/collections/master.rb
Parent: Object

This class wraps the MongoDB master database.

Methods

new  

Included Modules

Mongoid::Collections::Retry

Attributes

collection  [R] 

Public Class methods

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.

[Validate]