class Money::Bank::ECB::CacheFile
Attributes
path[R]
Public Class Methods
new(path)
click to toggle source
# File lib/money/bank/ecb/cache_file.rb, line 7 def initialize(path) @path = path end
Public Instance Methods
get()
click to toggle source
# File lib/money/bank/ecb/cache_file.rb, line 17 def get File.read(@path) end
set(value)
click to toggle source
# File lib/money/bank/ecb/cache_file.rb, line 12 def set(value) File.write(@path, value) value end