class Procore::Auth::Stores::File
Attributes
key[R]
path[R]
Public Class Methods
new(key:, path:)
click to toggle source
# File lib/procore/auth/stores/file.rb, line 8 def initialize(key:, path:) @key = key @path = path @store = YAML::Store.new(path) end
Public Instance Methods
delete()
click to toggle source
# File lib/procore/auth/stores/file.rb, line 22 def delete @store.transaction { @store.delete(key) } end
fetch()
click to toggle source
# File lib/procore/auth/stores/file.rb, line 18 def fetch @store.transaction { @store[key] } end
save(token)
click to toggle source
# File lib/procore/auth/stores/file.rb, line 14 def save(token) @store.transaction { @store[key] = token } end
to_s()
click to toggle source
# File lib/procore/auth/stores/file.rb, line 26 def to_s "File, Key: #{key}, Path: #{path}" end