Class: Couchbase::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/couchbase/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



26
27
28
# File 'lib/couchbase/configuration.rb', line 26

def initialize
  @connection_string = "couchbase://localhost"
end

Instance Attribute Details

#connection_stringObject

Returns the value of attribute connection_string.



22
23
24
# File 'lib/couchbase/configuration.rb', line 22

def connection_string
  @connection_string
end

#passwordObject

Returns the value of attribute password.



24
25
26
# File 'lib/couchbase/configuration.rb', line 24

def password
  @password
end

#usernameObject

Returns the value of attribute username.



23
24
25
# File 'lib/couchbase/configuration.rb', line 23

def username
  @username
end

Instance Method Details

#load!(path, environment = default_environment_name) ⇒ Object



30
31
32
33
# File 'lib/couchbase/configuration.rb', line 30

def load!(path, environment = default_environment_name)
  settings = load_yaml(path, environment)
  load_configuration(settings)
end