Class: FDB::Cluster

Inherits:
FormerFuture show all
Defined in:
lib/fdbimpl_v609.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from FormerFuture

#block_until_ready, #on_ready, #ready?

Constructor Details

#initialize(cluster_file_path) ⇒ Cluster

Returns a new instance of Cluster.



52
53
54
55
# File 'lib/fdbimpl_v609.rb', line 52

def initialize(cluster_file_path)
  @cluster_file_path = cluster_file_path
  @options = ClusterOptions.new
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



50
51
52
# File 'lib/fdbimpl_v609.rb', line 50

def options
  @options
end

Instance Method Details

#open_database(name = "DB") ⇒ Object



57
58
59
# File 'lib/fdbimpl_v609.rb', line 57

def open_database(name="DB")
  FDB.open(@cluster_file_path, name)
end