class Google::Auth::Stores::FileTokenStore
Implementation of user token storage backed by a local YAML file
def delete id
def delete id @store.transaction { @store.delete id } end
def initialize options = {}
-
file
(String, File
) --
def initialize options = {} super() path = options[:file] @store = YAML::Store.new path end
def load id
def load id @store.transaction { @store[id] } end
def store id, token
def store id, token @store.transaction { @store[id] = token } end