Class: Ibandit::GermanDetailsConverter::Rule004700
- Defined in:
- lib/ibandit/german_details_converter.rb
Instance Method Summary collapse
Methods inherited from BaseRule
Constructor Details
This class inherits a constructor from Ibandit::GermanDetailsConverter::BaseRule
Instance Method Details
#converted_details ⇒ Object
1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 |
# File 'lib/ibandit/german_details_converter.rb', line 1003 def converted_details unpadded_account_number = @account_number.gsub(/\A0+/, "") updated_account_number = if unpadded_account_number.size == 8 unpadded_account_number.ljust(10, "0") else unpadded_account_number.rjust(10, "0") end { bank_code: @bank_code, account_number: updated_account_number } end |