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.

Yield Parameters:

[View source]

322
323
324
# File 'lib/couchbase/cluster.rb', line 322

def initialize
  yield self if block_given?
end

Instance Attribute Details

#authenticatorObject

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