Mongo::Session::SessionId
Inherits Mongo::Tools::Initializer < BSON::Serializable < Struct < Value < Object
Constructors
new(bson : BSON)
Allocate an instance and copies data from a BSON struct.
class User
include BSON::Serializable
property name : String
end
data = BSON.new
data["name"] = "John"
User.new(data)
new
SourceClass methods
Instance methods
id
Source