module BSON

def self.ObjectId(string)

Other tags:
    See: ObjectId.from_string -

Returns:
  • (BSON::ObjectId) - The new object id.

Raises:
  • (BSON::Error::InvalidObjectId) - If the provided string is invalid.

Parameters:
  • string (String) -- The string to create the id from.

Other tags:
    Example: Create an object id from the string. -
def self.ObjectId(string)
  self::ObjectId.from_string(string)
end