Class: Danconia::Exchanges::FixedRates

Inherits:
Exchange
  • Object
show all
Defined in:
lib/danconia/exchanges/fixed_rates.rb

Instance Attribute Summary

Attributes inherited from Exchange

#store

Instance Method Summary collapse

Methods inherited from Exchange

#rate, #rates, #update_rates!

Constructor Details

#initialize(rates: {}, **args) ⇒ FixedRates

Returns a new instance of FixedRates.



4
5
6
7
8
# File 'lib/danconia/exchanges/fixed_rates.rb', line 4

def initialize rates: {}, **args
  super args
  @rates = rates
  update_rates!
end

Instance Method Details

#fetch_ratesObject



10
11
12
# File 'lib/danconia/exchanges/fixed_rates.rb', line 10

def fetch_rates
  @rates
end