struct Mongo::Commands::BuildInfo::Result

Included Modules

Defined in:

cryomongo/commands/diagnostic/build_info.cr

Constructors

Class Method Summary

Instance Method Summary

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

def self.from_bson(bson : BSON) #

NOTE See self.new.


Instance Method Detail

def allocator : String | Nil #

def allocator=(allocator : String | Nil) #

def bits : Float64 | Nil #

def bits=(bits : Float64 | Nil) #

def cluster_time : Session::ClusterTime | Nil #

def cluster_time=(cluster_time : Session::ClusterTime | Nil) #

def compiler_flags : String | Nil #

def compiler_flags=(compiler_flags : String | Nil) #

def debug : Bool | Nil #

def debug=(debug : Bool | Nil) #

def git_version : String | Nil #

def git_version=(git_version : String | Nil) #

def javascript_engine : String | Nil #

def javascript_engine=(javascript_engine : String | Nil) #

def loader_flags : String | Nil #

def loader_flags=(loader_flags : String | Nil) #

def max_bson_object_size : Float64 | Nil #

def max_bson_object_size=(max_bson_object_size : Float64 | Nil) #

def ok : Float64 #

def ok=(ok : Float64) #

def openssl : BSON | Nil #

def openssl=(openssl : BSON | Nil) #

def operation_time : BSON::Timestamp | Nil #

def operation_time=(operation_time : BSON::Timestamp | Nil) #

def recovery_token : BSON | Nil #

def recovery_token=(recovery_token : BSON | Nil) #

def sys_info : String | Nil #

def sys_info=(sys_info : String | Nil) #

def to_bson(bson = BSON.new) #

Converts to a BSON representation.

user = User.new name: "John"
bson = user.to_bson

def version : String | Nil #

def version=(version : String | Nil) #

def version_array : Array(Float64) | Nil #

def version_array=(version_array : Array(Float64) | Nil) #