Class: Couchbase::Cluster::ClusterOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/couchbase/cluster.rb,
/Users/sergey.auseyau/code/couchbase-ruby-client/lib/couchbase/cluster.rb
more...

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize {|_self| ... } ⇒ ClusterOptions

Returns a new instance of ClusterOptions.

Yields:

  • (_self)

Yield Parameters:

[View source]

292
293
294
# File 'lib/couchbase/cluster.rb', line 292

def initialize
  yield self if block_given?
end

Instance Attribute Details

#authenticatorObject

Returns the value of attribute authenticator.


290
291
292
# File 'lib/couchbase/cluster.rb', line 290

def authenticator
  @authenticator
end

Instance Method Details

#authenticate(username, password) ⇒ Object

[View source]

296
297
298
299
# File 'lib/couchbase/cluster.rb', line 296

def authenticate(username, password)
  @authenticator = PasswordAuthenticator.new(username, password)
  self
end