Class: BankingDataValidator::Bank::HSBC

Inherits:
Base
  • Object
show all
Defined in:
lib/banking_data_validator/bank/hsbc.rb

Instance Method Summary collapse

Methods inherited from Base

valid_account?, #valid_account?

Constructor Details

#initialize(branch, account_number, account_digit) ⇒ HSBC

Returns a new instance of HSBC.



7
8
9
10
11
12
# File 'lib/banking_data_validator/bank/hsbc.rb', line 7

def initialize(branch, , )
   =  + 
  @branch         = padding_with_zeros(branch, 4)
  @account_number = padding_with_zeros([0..5])
  @account_digit  = padding_with_zeros([6])
end