Class: Ibandit::GermanDetailsConverter::Rule004700

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



1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
# File 'lib/ibandit/german_details_converter.rb', line 1003

def converted_details
   = @account_number.gsub(/\A0+/, "")

   =
    if .size == 8
      .ljust(10, "0")
    else
      .rjust(10, "0")
    end

  { bank_code: @bank_code, account_number:  }
end