implemented the method get_old()

This commit is contained in:
2013-12-06 06:47:08 +04:00
parent e4e1ad9aba
commit 04233362df
4 changed files with 9 additions and 6 deletions

View File

@@ -21,6 +21,7 @@ class OpenExchange
def get_old(date) # YYYY-MM-DD
json = open("#{@@url}historical/#{date}.json?app_id=#{@api_key}",
'User-Agent' => @user_agent).read
return json
end
def get_currencies()