class BSON::ObjectId
def from_bson(buffer, **_)
- Since: - 2.0.0
Returns:
-
(BSON::ObjectId)- The object id.
Parameters:
-
_(Hash) -- An optional hash of keyword arguments (unused). -
buffer(ByteBuffer) -- The byte buffer.
Other tags:
- Example: Get the object id from BSON. -
def from_bson(buffer, **_) from_data(buffer.get_bytes(12)) end