Class: Ibandit::GermanDetailsConverter::Rule003600

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



890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
# File 'lib/ibandit/german_details_converter.rb', line 890

def converted_details
   =
    case @account_number.to_i
    when 100000..899999 then @account_number + "000"
    when 30000000..59999999 then @account_number
    when 100000000..899999999 then @account_number
    when 1000000000..1999999999 then @account_number
    when 3000000000..7099999999 then @account_number
    when 8500000000..8599999999 then @account_number
    when 9000000000..9999999999 then @account_number
    else disallow
    end

  { bank_code: "20050000", account_number:  }
end