class BSON::Timestamp
def self.from_bson(buffer, **options)
- Since: - 2.0.0
Other tags:
- See: http://bsonspec.org/#/specification -
Returns:
-
(Timestamp)- The decoded timestamp.
Options Hash:
(**options)-
:mode(nil | :bson) -- Decoding mode to use.
Parameters:
-
buffer(ByteBuffer) -- The byte buffer.
def self.from_bson(buffer, **options) increment = buffer.get_uint32 seconds = buffer.get_uint32 new(seconds, increment) end