class BSON::Timestamp
def as_extended_json(**options)
-
(Hash)
- The extended json representation.
Options Hash:
(**opts)
-
:mode
(nil | :relaxed | :legacy
) -- Serialization mode
def as_extended_json(**options) { "$timestamp" => { "t" => seconds, "i" => increment } } end