Class: Couchbase::JWTAuthenticator
- Inherits:
-
Object
- Object
- Couchbase::JWTAuthenticator
- Defined in:
- lib/couchbase/authenticator.rb
Overview
Authenticator using a JSON Web Token (JWT)
Instance Attribute Summary collapse
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(token) ⇒ JWTAuthenticator
constructor
Creates a new authenticator with a JSON Web Token (JWT).
Constructor Details
#initialize(token) ⇒ JWTAuthenticator
Creates a new authenticator with a JSON Web Token (JWT)
76 77 78 |
# File 'lib/couchbase/authenticator.rb', line 76 def initialize(token) @token = token end |
Instance Attribute Details
#token ⇒ Object
Returns the value of attribute token.
71 72 73 |
# File 'lib/couchbase/authenticator.rb', line 71 def token @token end |