Sha256: 8071b8bcff3e5d81b39f19d4e7983c586d7cd8eae323043a43eea89995614885
Contents?: true
Size: 489 Bytes
Versions: 1
Compression:
Stored size: 489 Bytes
Contents
require 'active_support/core_ext/object/blank' class BankingData::SwissBank < BankingData::Bank include ActiveModel::Model attr_accessor :bic def self.all banks = [] File.read(file, encoding: 'iso-8859-1').lines.each do |line| kennzeichen = line[7..10] if kennzeichen == '0000' bic = line[284..294] banks << new(bic: bic) end end banks end def self.file File.dirname(__FILE__) + '/../../data/bcbankenstamm.txt' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
banking_data-0.1.0 | lib/banking_data/swiss_bank.rb |