Sha256: 3cf5fe123f90c8c6f732c2d702fc529cf326e5a88b900edf305da30567c556ab
Contents?: true
Size: 346 Bytes
Versions: 3
Compression:
Stored size: 346 Bytes
Contents
module CurrencyRate class PaxfulAdapter < Adapter SUPPORTED_CURRENCIES = %w(USD) ANCHOR_CURRENCY = "BTC" FETCH_URL = "https://paxful.com/api/currency/btc" def normalize(data) return nil unless super { "anchor" => ANCHOR_CURRENCY, "USD" => BigDecimal(data["price"].to_s) } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
currency-rate-1.7.0 | lib/adapters/crypto/paxful_adapter.rb |
currency-rate-1.6.1 | lib/adapters/crypto/paxful_adapter.rb |
currency-rate-1.6.0 | lib/adapters/crypto/paxful_adapter.rb |