Sha256: 90afd50334f0a9c2dd62c6b49c8d42962ff2d6434eb35d4677791796671c408f

Contents?: true

Size: 246 Bytes

Versions: 8

Compression:

Stored size: 246 Bytes

Contents

module Danconia
  module Exchanges
    class FixedRates < Exchange
      def initialize rates: {}, **args
        super args
        @rates = rates
        update_rates!
      end

      def fetch_rates
        @rates
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
danconia-0.2.9 lib/danconia/exchanges/fixed_rates.rb
danconia-0.2.8 lib/danconia/exchanges/fixed_rates.rb
danconia-0.2.7 lib/danconia/exchanges/fixed_rates.rb
danconia-0.2.6 lib/danconia/exchanges/fixed_rates.rb
danconia-0.2.5 lib/danconia/exchanges/fixed_rates.rb
danconia-0.2.4 lib/danconia/exchanges/fixed_rates.rb
danconia-0.2.3 lib/danconia/exchanges/fixed_rates.rb
danconia-0.2.2 lib/danconia/exchanges/fixed_rates.rb