Class Mongo::Operation::ObjectIdGenerator
In: lib/mongo/operation/shared/object_id_generator.rb
Parent: Object

The default generator of ids for documents.

@since 2.2.0

Methods

generate  

Public Instance methods

Generate a new id.

@example Generate the id.

  object_id_generator.generate

@return [ BSON::ObjectId ] The new id.

@since 2.2.0

[Validate]