Class: Couchbase::Options::Cluster
- Inherits:
-
Object
- Object
- Couchbase::Options::Cluster
- Defined in:
- lib/couchbase/options.rb,
/Users/sergey.auseyau/code/couchbase-ruby-client/lib/couchbase/options.rb more...
Overview
Options for Cluster.connect
Instance Attribute Summary collapse
Instance Method Summary collapse
- #authenticate(username, password) ⇒ Object
-
#initialize(authenticator: nil) {|self| ... } ⇒ Cluster
constructor
Creates an instance of options for Cluster.connect.
Constructor Details
#initialize(authenticator: nil) {|self| ... } ⇒ Cluster
Creates an instance of options for Cluster.connect
1150 1151 1152 1153 |
# File 'lib/couchbase/options.rb', line 1150 def initialize(authenticator: nil) @authenticator = authenticator yield self if block_given? end |
Instance Attribute Details
#authenticator ⇒ PasswordAuthenticator, CertificateAuthenticator
1143 1144 1145 |
# File 'lib/couchbase/options.rb', line 1143 def authenticator @authenticator end |
Instance Method Details
#authenticate(username, password) ⇒ Object
1157 1158 1159 |
# File 'lib/couchbase/options.rb', line 1157 def authenticate(username, password) @authenticator = PasswordAuthenticator.new(username, password) end |