Class: Mongo::Operation::ObjectIdGenerator Private
- Inherits:
-
Object
- Object
- Mongo::Operation::ObjectIdGenerator
- Defined in:
- lib/mongo/operation/shared/object_id_generator.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
The default generator of ids for documents.
Instance Method Summary collapse
-
#generate ⇒ BSON::ObjectId
private
Generate a new id.
Instance Method Details
#generate ⇒ BSON::ObjectId
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Generate a new id.
35 36 37 |
# File 'lib/mongo/operation/shared/object_id_generator.rb', line 35 def generate BSON::ObjectId.new end |