Class: Couchbase::PasswordAuthenticator
- Inherits:
-
Object
- Object
- Couchbase::PasswordAuthenticator
- 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
-
#password ⇒ Object
Returns the value of attribute password.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(username, password) ⇒ PasswordAuthenticator
constructor
A new instance of PasswordAuthenticator.
Constructor Details
#initialize(username, password) ⇒ PasswordAuthenticator
Returns a new instance of PasswordAuthenticator.
21 22 23 24 |
# File 'lib/couchbase/authenticator.rb', line 21 def initialize(username, password) @username = username @password = password end |
Instance Attribute Details
#password ⇒ Object
Returns the value of attribute password.
19 20 21 |
# File 'lib/couchbase/authenticator.rb', line 19 def password @password end |
#username ⇒ Object
Returns the value of attribute username.
18 19 20 |
# File 'lib/couchbase/authenticator.rb', line 18 def username @username end |