lib/danconia/exchanges/exchange.rb in danconia-0.2.2 vs lib/danconia/exchanges/exchange.rb in danconia-0.2.3
- old
+ new
@@ -1,12 +1,11 @@
module Danconia
module Exchanges
class Exchange
- attr_reader :store, :currencies
+ attr_reader :store
- def initialize store: Stores::InMemory.new, currencies: []
+ def initialize store: Stores::InMemory.new
@store = store
- @currencies = currencies
end
def rate from, to
if from == 'USD' and direct_rate = @store.direct_rate(from, to)
direct_rate
\ No newline at end of file