Module: ECBExchangeRatesApi::Constants

Defined in:
lib/ecb_exchange_rates_api/constants.rb

Constant Summary collapse

DEFAULT_BASE =
"EUR"
CURRENCIES =
%w[USD GBP EUR JPY BGN CZK DKK HUF PLN RON
SEK CHF ISK NOK HRK RUB TRY AUD BRL CAD
CNY HKD IDR ILS INR KRW MXN MYR NZD PHP
SGD THB ZAR].freeze
CURRENCY_REGEXP =
/^[A-Z]{3}$/.freeze
DATE_REGEXP =

rubocop:disable Metrics/LineLength

/^[0-9]{4}-((([13578]|0[13578]|(10|12))-([1-9]|0[1-9]|[1-2][0-9]|3[0-1]))|(02-(0[1-9]|[1-2][0-9]))|(([469]|0[469]|11)-([1-9]|0[1-9]|[1-2][0-9]|30)))$/.freeze