struct BSON::ObjectId

Included Modules

Defined in:

bson/object_id.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from module BSON::Value

bson_size bson_size, to_bson to_bson

Constructor Detail

def self.new(bytes : Slice(UInt8)) #

[View source]
def self.new #

[View source]

Class Method Detail

def self.from_bson(bson : IO) #

[View source]
def self.generator #

[View source]

Instance Method Detail

def ==(other : ObjectId) #

[View source]
def bson_size #

[View source]
def bytes : Slice(UInt8) #

[View source]
def generation_time #

[View source]
def inspect(io) #

[View source]
def to_bson(bson : IO) #

[View source]
def to_s #
Description copied from class Object

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.


[View source]