struct

Mongo::Commands::BuildInfo::Result

Inherits Mongo::Commands::Common::Result / 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)

Class methods

from_bson(bson : BSON)

NOTE: See self.new.

Instance methods

allocator
Source
allocator=(allocator : String | Nil)
Source
bits
Source
bits=(bits : Float64 | Nil)
Source
cluster_time
cluster_time=(cluster_time : Session::ClusterTime | Nil)
compiler_flags
Source
compiler_flags=(compiler_flags : String | Nil)
Source
debug
Source
debug=(debug : Bool | Nil)
Source
git_version
Source
git_version=(git_version : String | Nil)
Source
javascript_engine
Source
javascript_engine=(javascript_engine : String | Nil)
Source
loader_flags
Source
loader_flags=(loader_flags : String | Nil)
Source
max_bson_object_size
Source
max_bson_object_size=(max_bson_object_size : Float64 | Nil)
Source
ok
ok=(ok : Float64)
openssl
Source
openssl=(openssl : BSON | Nil)
Source
operation_time
operation_time=(operation_time : BSON::Timestamp | Nil)
recovery_token
recovery_token=(recovery_token : BSON | Nil)
sys_info
Source
sys_info=(sys_info : String | Nil)
Source
to_bson(bson = BSON.new)

Converts to a BSON representation.

user = User.new name: "John"
bson = user.to_bson
version
Source
version=(version : String | Nil)
Source
version_array
Source
version_array=(version_array : Array(Float64) | Nil)
Source