Sha256: 04c98be966ad852af84ebd44f3b9600c2e393c82b1d68aa3c3cfd2d9e058ad58
Contents?: true
Size: 339 Bytes
Versions: 1
Compression:
Stored size: 339 Bytes
Contents
module CurrencyRate class YadioAdapter < Adapter SUPPORTED_CURRENCIES = %w(VES) ANCHOR_CURRENCY = "BTC" FETCH_URL = "https://api.yadio.io/rate/BTC" def normalize(data) return nil unless super { "anchor" => ANCHOR_CURRENCY, "VES" => BigDecimal(data["rate"].to_s), } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
currency-rate-1.5.3 | lib/adapters/crypto/yadio_adapter.rb |