Class: BloomRemit2::Rate
- Inherits:
-
Object
- Object
- BloomRemit2::Rate
- Defined in:
- lib/bloom_remit2/rate.rb
Class Method Summary collapse
-
.list ⇒ Object
Returns a real-time hash of currency exchange rates that update every minute.
-
.retrieve(currency_pair) ⇒ Object
Retrieves one currency exchange rate.
Class Method Details
.list ⇒ Object
Returns a real-time hash of currency exchange rates that update every minute
Supported currencies include: AED, AUD, BCH, BTC, CAD, CNY, DASH, ETH, EUR, GBP, HKD, IDR, INR, JPY, KRW, LINK, LTC, MYR, NPR, PHP, SGD, THB, USD, USDT, VND, XLM, XRP, ZAR. By default, all rates provided are relative to USD.
11 12 13 14 |
# File 'lib/bloom_remit2/rate.rb', line 11 def list rates = Client.get(path) JSON.parse(rates.body) end |