Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
bson
master
Array
Bool
BSON
Binary
Code
CodeWithScope
DBPointer
Document
MaxKey
MinKey
ObjectId
Generator
Specialized
ClassMethods
Symbol
Timestamp
Type
Undefined
Value
Float
Hash
Int
IO
Nil
Regex
String
Symbol
Time
Built with Crystal 1.9.2
2023-10-08 00:21:56 UTC
class
BSON::ObjectId::Generator
BSON::ObjectId::Generator
Reference
Object
Defined in:
bson/object_id.cr
Constructors
.new
Instance Method Summary
#counter
: Int32
#generate
(time, counter =
0
)
#machine_id
: String
#next_object_id
(time =
nil
)
#process_id
Constructor Detail
def self.
new
#
[
View source
]
Instance Method Detail
def
counter
: Int32
#
[
View source
]
def
generate
(time, counter =
0
)
#
[
View source
]
def
machine_id
:
String
#
[
View source
]
def
next_object_id
(time =
nil
)
#
[
View source
]
def
process_id
#
[
View source
]