Class: Exception7
- Inherits:
-
BaseException
- Object
- BaseException
- Exception7
- Defined in:
- lib/uk_account_validator/exceptions/exception_7.rb
Overview
Perform the check as specified, except if g = 9 zeroise weighting positions u-b.
Constant Summary
Constants included from NumberIndices
Instance Attribute Summary
Attributes inherited from BaseException
#account_number, #check_number, #modulus_weight, #sort_code
Instance Method Summary collapse
Methods inherited from BaseException
#after_calculate_total, allow_any?, #apply_account_number_substitutions, #apply_sort_code_substitutions, #initialize, #override_test?, #zero_all, #zero_u_b
Constructor Details
This class inherits a constructor from BaseException
Instance Method Details
#replace_weight(test_digits) ⇒ Object
4 5 6 7 8 |
# File 'lib/uk_account_validator/exceptions/exception_7.rb', line 4 def replace_weight(test_digits) return modulus_weight unless test_digits[NUMBER_INDEX[:g]] == 9 return zero_u_b end |