class Exception1

Perform the double alternate check except:

Add 27 to the total (ie before you divide by 10)

This effectively places a financial institution number (580149) before the sorting code and account number which is subject to the alternate doubling as well.

Public Instance Methods

after_calculate_total(total, _test_digits) click to toggle source
# File lib/uk_account_validator/exceptions/exception_1.rb, line 7
def after_calculate_total(total, _test_digits)
  return total + 27
end