class BankingData::AustrianBank

Constants

LOCALE

Attributes

bic[RW]
blz[RW]

Public Class Methods

all() click to toggle source
# File lib/banking_data/austrian_bank.rb, line 18
def all
  @@all ||= get_all
end
get_all() click to toggle source
# File lib/banking_data/austrian_bank.rb, line 22
def get_all
  banks = []
  SmarterCSV.process(file, opts).each do |line|
    blz = line[:bankleitzahl].to_s
    bic = line[:'swift_code']
    if blz && bic
      banks << new(bic: bic, blz: blz)
    end
  end
  banks.uniq
end

Private Class Methods

file() click to toggle source
# File lib/banking_data/austrian_bank.rb, line 36
def file
  File.dirname(__FILE__) +
    '/../../data/SEPA-ZV-VZ_gesamt_de_1642675944518_alte_Version.csv'
end
opts() click to toggle source
# File lib/banking_data/austrian_bank.rb, line 41
def opts
  {
    col_sep: ';',
    file_encoding: 'iso-8859-1'
  }
end