Class: Couchbase::PasswordAuthenticator
- Inherits:
-
Object
- Object
- Couchbase::PasswordAuthenticator
- Defined in:
- lib/couchbase/authenticator.rb
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.
20 21 22 23 |
# File 'lib/couchbase/authenticator.rb', line 20 def initialize(username, password) @username = username @password = password end |
Instance Attribute Details
#password ⇒ Object
Returns the value of attribute password.
18 19 20 |
# File 'lib/couchbase/authenticator.rb', line 18 def password @password end |
#username ⇒ Object
Returns the value of attribute username.
17 18 19 |
# File 'lib/couchbase/authenticator.rb', line 17 def username @username end |