Module: BSON::BigDecimal::ClassMethods

Defined in:
lib/logstash/outputs/bson/big_decimal.rb

Instance Method Summary collapse

Instance Method Details

#from_bson(bson) ⇒ BigDecimal

Deserialize an instance of a BigDecimal from a BSON double.

Parameters:

  • bson (BSON)

    object from Mongo.

Returns:

See Also:



46
47
48
# File 'lib/logstash/outputs/bson/big_decimal.rb', line 46

def from_bson(bson)
  from_bson_double(bson.read(8))
end