Sha256: f3d6d8a52723a265b993884b4134e678e047b468c84710508ddadde548664939
Contents?: true
Size: 307 Bytes
Versions: 3
Compression:
Stored size: 307 Bytes
Contents
module CurrencyRate class CryptoAdapter < Adapter SUPPORTED_CRYPTO_CURRENCIES = [] DECIMAL_PRECISION = 9 def rate_for(from,to) super end def invert_rate(from,to,rate) self.class::SUPPORTED_CRYPTO_CURRENCIES.include?(to) ? _invert_rate(rate) : rate end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
currency-rate-0.4.1 | lib/crypto_adapter.rb |
currency-rate-0.4.0 | lib/crypto_adapter.rb |
currency-rate-0.3.9 | lib/crypto_adapter.rb |