Class: Danconia::Exchanges::FixedRates
- Defined in:
- lib/danconia/exchanges/fixed_rates.rb
Instance Attribute Summary
Attributes inherited from Exchange
Instance Method Summary collapse
- #fetch_rates ⇒ Object
-
#initialize(rates: {}, **args) ⇒ FixedRates
constructor
A new instance of FixedRates.
Methods inherited from Exchange
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_rates ⇒ Object
10 11 12 |
# File 'lib/danconia/exchanges/fixed_rates.rb', line 10 def fetch_rates @rates end |