lib/danconia/currency.rb in danconia-0.2.1 vs lib/danconia/currency.rb in danconia-0.2.2

- old
+ new

@@ -1,8 +1,8 @@ module Danconia class Currency < Struct.new(:code, :symbol, :description, keyword_init: true) def self.find code, exchange return code if code.is_a? Currency - new exchange.available_currencies.find { |c| c[:code] == code } || {code: code, symbol: '$'} + new exchange.currencies.find { |c| c[:code] == code } || {code: code, symbol: '$'} end end end \ No newline at end of file