module BSON::BigDecimal

def bson_type

BSON::Decimal128.
Get the BSON type for BigDecimal. This is the same BSON type as
def bson_type
  BSON_TYPE
end

def to_bson(buffer = ByteBuffer.new)

Other tags:
    See: http://bsonspec.org/#/specification -

Returns:
  • (BSON::ByteBuffer) - The buffer with the encoded object.

Other tags:
    Example: Get the BigDecimal as encoded BSON. -
def to_bson(buffer = ByteBuffer.new)
  BSON::Decimal128.new(to_s).to_bson(buffer)
end