Class: Ibandit::GermanDetailsConverter::Rule000300

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



95
96
97
98
99
100
101
102
# File 'lib/ibandit/german_details_converter.rb', line 95

def converted_details
  if @account_number == "6161604670"
    msg = "Account does not support payment transactions"
    raise UnsupportedAccountDetails, msg
  else
    { bank_code: @bank_code, account_number: @account_number }
  end
end