Class: Couchbase::PasswordAuthenticator

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(username, password) ⇒ PasswordAuthenticator

Returns a new instance of PasswordAuthenticator.

[View source]

20
21
22
23
# File 'lib/couchbase/authenticator.rb', line 20

def initialize(username, password)
  @username = username
  @password = password
end

Instance Attribute Details

#passwordObject

Returns the value of attribute password.


18
19
20
# File 'lib/couchbase/authenticator.rb', line 18

def password
  @password
end

#usernameObject

Returns the value of attribute username.


17
18
19
# File 'lib/couchbase/authenticator.rb', line 17

def username
  @username
end