class Jsonrates::Client
Constants
- REPLACE_KEYS
Public Class Methods
historical(options)
click to toggle source
# File lib/jsonrates_client.rb, line 14 def self.historical(options) prepare_params(options) response = JSON.parse(get("/historical", query: options)) response["rates"] end
Private Class Methods
prepare_params(options)
click to toggle source
# File lib/jsonrates_client.rb, line 22 def self.prepare_params(options) REPLACE_KEYS.each_key do |key| if options.has_key?(key) options[REPLACE_KEYS[key]] = options.delete(key) end end end