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.



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

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

Instance Attribute Details

#connection_stringObject

Returns the value of attribute connection_string.



20
21
22
# File 'lib/couchbase/configuration.rb', line 20

def connection_string
  @connection_string
end

#passwordObject

Returns the value of attribute password.



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

def password
  @password
end

#usernameObject

Returns the value of attribute username.



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

def username
  @username
end

Instance Method Details

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



28
29
30
31
# File 'lib/couchbase/configuration.rb', line 28

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