class BSON::MinKey
@since 2.0.0
@see bsonspec.org/#/specification<br><br>specification.
Represents a $minKey type, which compares less than any other value in the
def <=>(other)
- Since: - 2.0.0
Returns:
-
(Integer)
- Always -1.
Parameters:
-
other
(Object
) -- The object to compare against.
Other tags:
- Example: Compare with another object. -
def <=>(other) LESSER end
def as_extended_json(**options)
-
(Hash)
- The extended json representation.
Options Hash:
(**opts)
-
:mode
(nil | :relaxed | :legacy
) -- Serialization mode
def as_extended_json(**options) { "$minKey" => 1 } end
def as_json(*_args)
-
(Hash)
- The extended json representation.
def as_json(*_args) as_extended_json end