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 #

[View source]
def allocator=(allocator : String | Nil) #

[View source]
def bits : Float64 | Nil #

[View source]
def bits=(bits : Float64 | Nil) #

[View source]
def cluster_time : Session::ClusterTime | Nil #

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

def compiler_flags : String | Nil #

[View source]
def compiler_flags=(compiler_flags : String | Nil) #

[View source]
def debug : Bool | Nil #

[View source]
def debug=(debug : Bool | Nil) #

[View source]
def git_version : String | Nil #

[View source]
def git_version=(git_version : String | Nil) #

[View source]
def javascript_engine : String | Nil #

[View source]
def javascript_engine=(javascript_engine : String | Nil) #

[View source]
def loader_flags : String | Nil #

[View source]
def loader_flags=(loader_flags : String | Nil) #

[View source]
def max_bson_object_size : Float64 | Nil #

[View source]
def max_bson_object_size=(max_bson_object_size : Float64 | Nil) #

[View source]
def ok : Float64 #

def ok=(ok : Float64) #

def openssl : BSON | Nil #

[View source]
def openssl=(openssl : BSON | Nil) #

[View source]
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 #

[View source]
def sys_info=(sys_info : String | Nil) #

[View source]
def to_bson(bson = BSON.new) #

Converts to a BSON representation.

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

def version : String | Nil #

[View source]
def version=(version : String | Nil) #

[View source]
def version_array : Array(Float64) | Nil #

[View source]
def version_array=(version_array : Array(Float64) | Nil) #

[View source]