Class: Couchbase::Cluster::ClusterOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/couchbase/cluster.rb

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]

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

def initialize
  yield self if block_given?
end

Instance Attribute Details

#authenticatorObject

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