googleauth - Class Google::Auth::TokenStore (v1.12.0)

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.

Parameter
  • id (String) — ID of the token data to delete
Raises
  • (NoMethodError)

#load

def load(_id) -> String

Load the token data from storage for the given ID.

Parameter
  • id (String) — ID of token data to load.
Returns
  • (String) — The loaded token data.
Raises
  • (NoMethodError)

#store

def store(_id, _token)

Put the token data into storage for the given ID.

Parameters
  • id (String) — ID of token data to store.
  • token (String) — The token data to store.
Raises
  • (NoMethodError)