Class: Google::Auth::TokenStore
- Inherits:
-
Object
- Object
- Google::Auth::TokenStore
- Defined in:
- lib/googleauth/token_store.rb
Overview
Interface definition for token stores. It is not required that implementations inherit from this class. It is provided for documentation purposes to illustrate the API contract.
Direct Known Subclasses
Class Attribute Summary collapse
-
.default ⇒ Object
Returns the value of attribute default.
Instance Method Summary collapse
-
#delete(_id) ⇒ Object
Remove the token data from storage for the given ID.
-
#load(_id) ⇒ String
Load the token data from storage for the given ID.
-
#store(_id, _token) ⇒ Object
Put the token data into storage for the given ID.
Class Attribute Details
.default ⇒ Object
Returns the value of attribute default.
37 38 39 |
# File 'lib/googleauth/token_store.rb', line 37 def default @default end |
Instance Method Details
#delete(_id) ⇒ Object
Remove the token data from storage for the given ID.
64 65 66 |
# File 'lib/googleauth/token_store.rb', line 64 def delete(_id) raise 'Not implemented' end |
#load(_id) ⇒ String
Load the token data from storage for the given ID.
46 47 48 |
# File 'lib/googleauth/token_store.rb', line 46 def load(_id) raise 'Not implemented' end |
#store(_id, _token) ⇒ Object
Put the token data into storage for the given ID.
56 57 58 |
# File 'lib/googleauth/token_store.rb', line 56 def store(_id, _token) raise 'Not implemented' end |