class BSON::Decimal128
def from_bson(buffer, **options)
- Since: - 4.2.0
Returns:
-
(BSON::Decimal128)- The decimal object.
Options Hash:
(**options)-
:mode(nil | :bson) -- Decoding mode to use.
Parameters:
-
buffer(ByteBuffer) -- The byte buffer.
Other tags:
- Example: Get the decimal128 from BSON. -
def from_bson(buffer, **options) from_bits(*buffer.get_decimal128_bytes.unpack('Q<*')) end