module BSON::BigDecimal::ClassMethods
Public Instance Methods
from_bson(buffer, **options)
click to toggle source
Deserialize the BigDecimal
from raw BSON
bytes.
@example Get the BigDecimal
from BSON
.
BigDecimal.from_bson(bson)
@param [ ByteBuffer
] buffer The byte buffer.
@option options [ nil | :bson ] :mode Decoding mode to use.
@return [ BigDecimal
] The decimal object.
# File lib/bson/big_decimal.rb, line 58 def from_bson(buffer, **options) Decimal128.from_bson(buffer, **options).to_big_decimal end