Class: Couchbase::PasswordAuthenticator

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

Overview

Authenticator for username/password credentials

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(username, password) ⇒ PasswordAuthenticator

Returns a new instance of PasswordAuthenticator.

[View source]

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

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

Instance Attribute Details

#passwordObject

Returns the value of attribute password.


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

def password
  @password
end

#usernameObject

Returns the value of attribute username.


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

def username
  @username
end