module BSON::Float::ClassMethods
Public Instance Methods
from_bson(buffer, **options)
click to toggle source
Deserialize an instance of a Float
from a BSON
double.
@param [ ByteBuffer
] buffer The byte buffer.
@option options [ nil | :bson ] :mode Decoding mode to use.
@return [ Float
] The decoded Float
.
@see bsonspec.org/#/specification
@since 2.0.0
# File lib/bson/float.rb, line 95 def from_bson(buffer, **options) buffer.get_double end