class Momm::Storage
Public Instance Methods
client()
click to toggle source
get_rate(currency, date = Date.today)
click to toggle source
set_rate(currency, rate, date = Date.today)
click to toggle source
Insert the currency rate to client
Parameters¶ ↑
- currency
-
Currency passed in, should be a symbol of iso code, such as :CNY, :USD, or :GBP
- rate
-
Fixnum represent for the currency rate from euro to certain currency
- date
-
Ruby date type, the date of currency rate, today by default
Returns¶ ↑
nil
# File lib/momm/storage.rb, line 29 def set_rate(currency, rate, date = Date.today) raise NotImplementedError end