Exception: OpenExchangeRates::Rates::RateNotFoundError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/open_exchange_rates/rates.rb

Instance Method Summary collapse

Constructor Details

#initialize(from_curr, to_curr) ⇒ RateNotFoundError

Returns a new instance of RateNotFoundError.



14
15
16
17
# File 'lib/open_exchange_rates/rates.rb', line 14

def initialize(from_curr, to_curr)
  msg = "Rate not found for #{from_curr} => #{to_curr}"
  super(msg)
end