Sha256: 06e2e173723b0e41e162a01dba9aef4971ea4e023c120beff13e27964709f165
Contents?: true
Size: 621 Bytes
Versions: 1
Compression:
Stored size: 621 Bytes
Contents
require 'active_support/core_ext/object/blank' require 'active_support/core_ext/object/try' class BankingData::AustrianBank < BankingData::Bank include ActiveModel::Model attr_accessor :bic def self.all banks = [] SmarterCSV.process(file, opts).each do |line| bic = line[:'swift-code'].try(:gsub, /"/, '') banks << new(bic: bic) end banks end def self.file File.dirname(__FILE__) + '/../../data/kiverzeichnis_gesamt_de_1381499802577.csv' end def self.opts { col_sep: ';', file_encoding: 'iso-8859-1', force_simple_split: true } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
banking_data-0.1.0 | lib/banking_data/austrian_bank.rb |