module BSON::BigDecimal
def bson_type
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)
- 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