Sha256: 54f1bc135cbb3ecb02799d264c7db5cbbc3677c0e9e54364fd554e10972b841f

Contents?: true

Size: 696 Bytes

Versions: 2

Compression:

Stored size: 696 Bytes

Contents

require 'czech_bank_account/account'

module CzechBankAccount
  KNOWN_BANK_CODES = ['0100', '0300', '0600', '0710', '0800', '2010', '2020', '2030', '2060', '2070', '2100', '2200', '2220', '2240', '2250', '2260', '2275', '2600', '2700', '3030', '3050', '3060', '3500', '4000', '4300', '5500', '5800', '6000', '6100', '6200', '6210', '6300', '6700', '6800', '7910', '7940', '7950', '7960', '7970', '7980', '7990', '8030', '8040', '8060', '8090', '8150', '8200', '8215', '8220', '8225', '8230', '8240', '8250', '8260', '8265', '8270', '8280', '8290', '8291', '8292', '8293', '8294']

  def self.validate(number, bank_code)
    account = Account.new(number, bank_code)
    account.validate
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
czech_bank_account-1.1.0 lib/czech_bank_account.rb
czech_bank_account-1.0.0 lib/czech_bank_account.rb