类:Mongo::Operation::ObjectIdGenerator Private
- 继承:
-
对象
- 对象
- Mongo::Operation::ObjectIdGenerator
- 定义于:
- lib/ Mongo/operation/shared/object_id_generator.rb
Overview
此类是私有 API 的一部分。 应尽可能避免使用此类,因为它将来可能会被删除或更改。
文档 ID 的默认生成器。
实例方法摘要折叠
-
#生成=" BSON::ObjectId"
private
生成新 ID。
实例方法详细信息
#生成⇒ BSON::ObjectId
此方法是私有 API 的一部分。 您应尽可能避免使用此方法,因为它将来可能会被删除或更改。
生成新 ID。
35 36 37 |
# File 'lib/ Mongo/operation/shared/object_id_generator.rb', line 35 def 生成 BSON::ObjectId.new end |