Class: Couchbase::Configuration
- Inherits:
-
Object
- Object
- Couchbase::Configuration
- Defined in:
- lib/couchbase/configuration.rb
Instance Attribute Summary collapse
-
#connection_string ⇒ Object
Returns the value of attribute connection_string.
-
#password ⇒ Object
Returns the value of attribute password.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #load!(path, environment = default_environment_name) ⇒ Object
Constructor Details
#initialize ⇒ Configuration
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_string ⇒ Object
Returns the value of attribute connection_string.
22 23 24 |
# File 'lib/couchbase/configuration.rb', line 22 def connection_string @connection_string end |
#password ⇒ Object
Returns the value of attribute password.
24 25 26 |
# File 'lib/couchbase/configuration.rb', line 24 def password @password end |
#username ⇒ Object
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 |