Class: Couchbase::Cluster::ClusterOptions
- Inherits:
-
Object
- Object
- Couchbase::Cluster::ClusterOptions
- Defined in:
- lib/couchbase/cluster.rb,
/Users/sergey.auseyau/code/couchbase-ruby-client/lib/couchbase/cluster.rb more...
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.
322 323 324 |
# File 'lib/couchbase/cluster.rb', line 322 def initialize yield self if block_given? end |
Instance Attribute Details
#authenticator ⇒ Object
Returns the value of attribute authenticator.
319 320 321 |
# File 'lib/couchbase/cluster.rb', line 319 def authenticator @authenticator end |
Instance Method Details
#authenticate(username, password) ⇒ Object
[View source]
326 327 328 329 |
# File 'lib/couchbase/cluster.rb', line 326 def authenticate(username, password) @authenticator = PasswordAuthenticator.new(username, password) self end |