module Moped::BSON

The module for Moped's BSON implementation.

Constants

BINARY_ENCODING
EOD
FLOAT_PACK
INT32_PACK
INT64_PACK
START_LENGTH
UTF8_ENCODING

Public Class Methods

ObjectId(string) click to toggle source

Create a new object id from the provided string.

@example Create a new object id.

Moped::BSON::ObjectId("4faf83c7dbf89b7b29000001")

@param [ String ] string The string to use.

@return [ ObjectId ] The object id.

@since 1.0.0

# File lib/moped/bson.rb, line 40
def ObjectId(string)
  ObjectId.from_string(string)
end