Class: Mongo::Operation::ObjectIdGenerator Private
Do not use. This class is for internal use only.
Relationships & Source Files | |
Inherits: | Object |
Defined in: | lib/mongo/operation/shared/object_id_generator.rb |
Overview
The default generator of ids for documents.
Instance Method Summary
-
#generate ⇒ BSON::ObjectId
Internal use only
Generate a new id.
Instance Method Details
#generate ⇒ BSON::ObjectId
Generate a new id.
# File 'lib/mongo/operation/shared/object_id_generator.rb', line 35
def generate BSON::ObjectId.new end