Class: Ibandit::GermanDetailsConverter::Rule002900

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



622
623
624
625
626
627
628
629
630
631
# File 'lib/ibandit/german_details_converter.rb', line 622

def converted_details
   =
    if @account_number.size == 10 && @account_number[3] == "0"
      "0#{@account_number.slice(0, 3)}#{@account_number.slice(4, 6)}"
    else
      @account_number
    end

  { bank_code: @bank_code, account_number:  }
end