Class: HSBC

Inherits:
SingaporeBankCode::BankAccount show all
Defined in:
lib/banks/hsbc.rb

Instance Attribute Summary

Attributes inherited from SingaporeBankCode::BankAccount

#number

Instance Method Summary collapse

Methods inherited from SingaporeBankCode::BankAccount

#branch_code, #branch_name, decendants, #initialize, #min_length, #resolve!

Constructor Details

This class inherits a constructor from SingaporeBankCode::BankAccount

Instance Method Details

#bank_codeObject



3
4
5
# File 'lib/banks/hsbc.rb', line 3

def bank_code
  '7232'
end

#reference_hash_collectionObject



15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/banks/hsbc.rb', line 15

def reference_hash_collection
  {
    '041' => "Collyer Quay 041",
    '042' => "Orchard Dhoby Ghaut 042",
    '043' => "Claymore-Tanglin 043",
    '044' => "Holland Village 044",
    '045' => "Serangoon 045",
    '046' => "Jurong 046",
    '047' => "Collyer Quay-TG Pagar 047",
    '049' => "Suntec 049",
    '050' => "Jurong-Bukit Timah 050",
    '051' => "Marine Parade 051",
    '052' => "Collyer Quay 052",
    '054' => "Serangoon-Bishan 054",
    '055' => "Claymore-Ord Central 055",
    '056' => "Collyer Quay-Vivocity 056",
    '057' => "Claymore – Nassim 057",
    '071' => "Tampines 071",
    '141' => "Collyer Quay-OCB141",
    '142' => "Orchard Dhoby Ghaut 142",
    '143' => "Liat Tower Wealth Hub",
    '144' => "Holland Village",
    '145' => "Serangoon Garden",
    '146' => "Jurong",
    '147' => "Tanjong Pagar",
    '149' => "Suntec City",
    '150' => "Upper Bukit Timah",
    '151' => "Marine Parade",
    '152' => "Collyer Quay",
    '154' => "Bishan",
    '155' => "Orchard Central",
    '156' => "VivoCity",
    '157' => "Nassim Hill",
    '171' => "Tampines",
    '172' => "Claymore",
    '800' => "VA DBU 00",
    '801' => "VA DBU 01",
    '802' => "VA DBU 02",
    '803' => "VA DBU 03",
    '870' => "VA ACU 70",
    '872' => "VA ACU 72",
    '873' => "VA ACU 73",
  }
end

#resolved_numberObject



11
12
13
# File 'lib/banks/hsbc.rb', line 11

def resolved_number
  @number[3..-1]
end

#swift_codeObject



7
8
9
# File 'lib/banks/hsbc.rb', line 7

def swift_code
  'HSBCSGSGXXX'
end