class Ibandit::GermanDetailsConverter::Rule004201
New version of Rule004200
but with another range: For 10-digit Account Numbers, only the following Account Numbers are applicable to be issued / created into an IBAN
with the standard-IBAN rule: nnn4400001 to nnn4499999
Public Instance Methods
Source
# File lib/ibandit/german_details_converter.rb, line 967 def converted_details unpadded_account_number = @account_number.gsub(/\A0+/, "") if unpadded_account_number.size == 10 && %w[4400001 4499999].include?(unpadded_account_number.slice(3, 10)) { bank_code: @bank_code, account_number: @account_number } else super end end
Calls superclass method
Ibandit::GermanDetailsConverter::Rule004200#converted_details