Module: BSON::Specialized::ClassMethods

Defined in:
lib/bson/specialized.rb

Overview

Since:

  • 2.0.0

Instance Method Summary collapse

Instance Method Details

#from_bson(buffer, **options) ⇒ Specialized

Deserialize from BSON.

Parameters:

  • buffer (ByteBuffer)

    The byte buffer.

  • options (Hash)

    a customizable set of options

Options Hash (**options):

  • :mode (nil | :bson)

    Decoding mode to use.

Returns:

See Also:

Since:

  • 2.0.0



73
74
75
# File 'lib/bson/specialized.rb', line 73

def from_bson(buffer, **options)
  new
end