struct Mongo::Commands::BuildInfo::Result
- Mongo::Commands::BuildInfo::Result
- Struct
- Value
- Object
Included Modules
- BSON::Serializable
- Mongo::Commands::Common::Result
Defined in:
cryomongo/commands/diagnostic/build_info.crConstructors
-
.new(bson : BSON)
Allocate an instance and copies data from a BSON struct.
Class Method Summary
-
.from_bson(bson : BSON)
NOTE See
self.new
.
Instance Method Summary
- #allocator : String?
- #allocator=(allocator : String?)
- #bits : Float64?
- #bits=(bits : Float64?)
- #cluster_time : Session::ClusterTime?
- #cluster_time=(cluster_time : Session::ClusterTime?)
- #compiler_flags : String?
- #compiler_flags=(compiler_flags : String?)
- #debug : Bool?
- #debug=(debug : Bool?)
- #git_version : String?
- #git_version=(git_version : String?)
- #javascript_engine : String?
- #javascript_engine=(javascript_engine : String?)
- #loader_flags : String?
- #loader_flags=(loader_flags : String?)
- #max_bson_object_size : Float64?
- #max_bson_object_size=(max_bson_object_size : Float64?)
- #ok : Float64
- #ok=(ok : Float64)
- #openssl : BSON?
- #openssl=(openssl : BSON?)
- #operation_time : BSON::Timestamp?
- #operation_time=(operation_time : BSON::Timestamp?)
- #recovery_token : BSON?
- #recovery_token=(recovery_token : BSON?)
- #sys_info : String?
- #sys_info=(sys_info : String?)
-
#to_bson(bson = BSON.new)
Converts to a BSON representation.
- #version : String?
- #version=(version : String?)
- #version_array : Array(Float64)?
- #version_array=(version_array : Array(Float64)?)
Constructor Detail
def self.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)
Class Method Detail
Instance Method Detail
def to_bson(bson = BSON.new)
#
Converts to a BSON representation.
user = User.new name: "John"
bson = user.to_bson