Method: Google::Auth::Stores::FileTokenStore#initialize

Defined in:
lib/googleauth/stores/file_token_store.rb

#initialize(options = {}) ⇒ FileTokenStore

Create a new store with the supplied file.

Parameters:

  • file (String, File)

    Path to storage file



27
28
29
30
31
# File 'lib/googleauth/stores/file_token_store.rb', line 27

def initialize options = {}
  super()
  path = options[:file]
  @store = YAML::Store.new path
end