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? #

def allocator=(allocator : String?) #

def bits : Float64? #

def bits=(bits : Float64?) #

def cluster_time : Session::ClusterTime? #

def cluster_time=(cluster_time : Session::ClusterTime?) #

def compiler_flags : String? #

def compiler_flags=(compiler_flags : String?) #

def debug : Bool? #

def debug=(debug : Bool?) #

def git_version : String? #

def git_version=(git_version : String?) #

def javascript_engine : String? #

def javascript_engine=(javascript_engine : String?) #

def loader_flags : String? #

def loader_flags=(loader_flags : String?) #

def max_bson_object_size : Float64? #

def max_bson_object_size=(max_bson_object_size : Float64?) #

def ok : Float64 #

def ok=(ok : Float64) #

def openssl : BSON? #

def openssl=(openssl : BSON?) #

def operation_time : BSON::Timestamp? #

def operation_time=(operation_time : BSON::Timestamp?) #

def recovery_token : BSON? #

def recovery_token=(recovery_token : BSON?) #

def sys_info : String? #

def sys_info=(sys_info : String?) #

def to_bson(bson = BSON.new) #

Converts to a BSON representation.

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

def version : String? #

def version=(version : String?) #

def version_array : Array(Float64)? #

def version_array=(version_array : Array(Float64)?) #