class BSON::DBRef
def to_bson(buffer = ByteBuffer.new)
-
(BSON::ByteBuffer)
- The buffer with the encoded object.
Parameters:
-
buffer
(BSON::ByteBuffer
) -- The encoded BSON buffer to append to.
Other tags:
- Example: Convert the DBRef to raw BSON. -
def to_bson(buffer = ByteBuffer.new) as_json.to_bson(buffer) end