class Mongo::Operation::ObjectIdGenerator
The default generator of ids for documents.
@since 2.2.0 @api private
Public Instance Methods
Source
# File lib/mongo/operation/shared/object_id_generator.rb, line 32 def generate BSON::ObjectId.new end
Generate a new id.
@example Generate the id.
object_id_generator.generate
@return [ BSON::ObjectId ] The new id.
@since 2.2.0