Reference documentation and code samples for the googleauth class Google::Auth::TokenStore.
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.
Inherits
- Object
Methods
.default
def
self
.
default
()
Returns the value of attribute default.
.default=
def
self
.
default=
(
value
)
Sets the attribute default
#delete
def
delete
(
_id
)
Remove the token data from storage for the given ID.
- id(String) — ID of the token data to delete
- (NoMethodError)
#load
def
load
(
_id
)
-
>
String
Load the token data from storage for the given ID.
- id(String) — ID of token data to load.
- (String) — The loaded token data.
- (NoMethodError)
#store
def
store
(
_id
,
_token
)
Put the token data into storage for the given ID.
- id(String) — ID of token data to store.
- token(String) — The token data to store.
- (NoMethodError)