Class: ObjectID

MongoID.ObjectID(hexStringopt)

new ObjectID(hexStringopt)

Create a Mongo-style ObjectID. If you don't specify a hexString, the ObjectID will be generated randomly (not using MongoDB's ID construction rules).
Parameters:
Name Type Attributes Description
hexString string <optional>
Optional. The 24-character hexadecimal contents of the ObjectID to create
Source:
See: