class HelpScout::TokenStorage::Redis

Constants

IDENTIFIER

Public Class Methods

new(db) click to toggle source
# File lib/help_scout/token_storage/redis.rb, line 6
def initialize(db)
  @db = db
end

Public Instance Methods

store_token(new_token) click to toggle source
# File lib/help_scout/token_storage/redis.rb, line 14
def store_token(new_token)
  @db.set(IDENTIFIER, new_token)
end
token() click to toggle source
# File lib/help_scout/token_storage/redis.rb, line 10
def token
  @db.get(IDENTIFIER)
end