Class: Ibandit::GermanDetailsConverter::Rule000900

Inherits:
BaseRule
  • Object
show all
Defined in:
lib/ibandit/german_details_converter.rb

Instance Method Summary collapse

Methods inherited from BaseRule

#initialize

Constructor Details

This class inherits a constructor from Ibandit::GermanDetailsConverter::BaseRule

Instance Method Details

#converted_detailsObject



386
387
388
389
390
391
392
393
394
395
# File 'lib/ibandit/german_details_converter.rb', line 386

def converted_details
   =
    if @account_number.rjust(10, '0').slice(0, 4) == '1116'
      "3047#{@account_number.rjust(10, '0').slice(4, 6)}"
    else
      @account_number
    end

  { bank_code: '68351557', account_number:  }
end