lib/currency_cloud/rate.rb in currency_cloud-0.7.2 vs lib/currency_cloud/rate.rb in currency_cloud-0.8.0
- old
+ new
@@ -3,19 +3,19 @@
include CurrencyCloud::Resource
resource :rates
def self.find(params)
- response = client.get("find", params)
+ response = client.get('find', params)
- rates = response["rates"].map do |currency_pair, (bid, offer)|
+ rates = response['rates'].map do |currency_pair, (bid, offer)|
new(currency_pair: currency_pair, bid: bid, offer: offer)
end
- Rates.new(currencies: rates, unavailable: response["unavailable"])
+ Rates.new(currencies: rates, unavailable: response['unavailable'])
end
def self.detailed(params)
- new(client.get("detailed", params))
+ new(client.get('detailed', params))
end
end
end