Module: ISO4217

Defined in:
lib/iso4217.rb,
lib/iso4217/version.rb

Constant Summary collapse

Currency =
Data.define(
  :country_name,
  :currency_name,
  :currency_code,
  :currency_number,
  :minor_unit,
  :is_fund
)
VERSION =
"2025-05-12"

Class Method Summary collapse

Class Method Details

.codesObject



21
22
23
# File 'lib/iso4217.rb', line 21

def self.codes
  currencies.map(&:currency_code).compact
end

.currenciesObject



17
18
19
# File 'lib/iso4217.rb', line 17

def self.currencies
  @currencies ||= load_currency_data
end