Class: Couchbase::Cluster::ClusterOptions
- Inherits:
-
Object
- Object
- Couchbase::Cluster::ClusterOptions
- Defined in:
- lib/couchbase/cluster.rb
Instance Attribute Summary collapse
-
#authenticator ⇒ Object
Returns the value of attribute authenticator.
Instance Method Summary collapse
- #authenticate(username, password) ⇒ Object
-
#initialize {|_self| ... } ⇒ ClusterOptions
constructor
A new instance of ClusterOptions.
Constructor Details
#initialize {|_self| ... } ⇒ ClusterOptions
Returns a new instance of ClusterOptions.
296 297 298 |
# File 'lib/couchbase/cluster.rb', line 296 def initialize yield self if block_given? end |
Instance Attribute Details
#authenticator ⇒ Object
Returns the value of attribute authenticator.
294 295 296 |
# File 'lib/couchbase/cluster.rb', line 294 def authenticator @authenticator end |
Instance Method Details
#authenticate(username, password) ⇒ Object
[View source]
300 301 302 303 |
# File 'lib/couchbase/cluster.rb', line 300 def authenticate(username, password) @authenticator = PasswordAuthenticator.new(username, password) self end |