class BankingData::GermanBank
Constants
- LOCALE
Attributes
bic[RW]
blz[RW]
Public Class Methods
all()
click to toggle source
# File lib/banking_data/german_bank.rb, line 17 def all @@all ||= get_all end
Private Class Methods
file()
click to toggle source
# File lib/banking_data/german_bank.rb, line 33 def file File.dirname(__FILE__) + '/../../data/blz_2021_12_06.txt' end
get_all()
click to toggle source
# File lib/banking_data/german_bank.rb, line 23 def get_all banks = [] File.open(file, 'r:iso-8859-1').each_line do |line| blz = line[0..7] bic = line[139..149] banks << new(bic: bic, blz: blz) end banks.uniq end