Class: Google::Auth::TokenStore

Inherits:
Object
  • Object
show all
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.

Class Attribute Summary collapse

Instance Method Summary collapse

Class Attribute Details

.defaultObject

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.

Parameters:

  • id (String)

    ID of the token data to delete


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.

Parameters:

  • id (String)

    ID of token data to load.

Returns:

  • (String)

    The loaded token data.


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.

Parameters:

  • id (String)

    ID of token data to store.

  • token (String)

    The token data to store.


56
57
58
# File 'lib/googleauth/token_store.rb', line 56

def store(_id, _token)
  raise 'Not implemented'
end