Class: STANDARDCHARTERED

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

Instance Attribute Summary

Attributes inherited from SingaporeBankCode::BankAccount

#number

Instance Method Summary collapse

Methods inherited from SingaporeBankCode::BankAccount

decendants, #initialize, #resolve!, #resolved_number

Constructor Details

This class inherits a constructor from SingaporeBankCode::BankAccount

Instance Method Details

#bank_codeObject



6
7
8
# File 'lib/banks/standard_chartered.rb', line 6

def bank_code
  '7144'
end

#branch_codeObject



14
15
16
# File 'lib/banks/standard_chartered.rb', line 14

def branch_code
  '0' + @number[0..1].to_s
end

#branch_nameObject



18
19
20
# File 'lib/banks/standard_chartered.rb', line 18

def branch_name
  reference_hash_collection[branch_code]
end

#min_lengthObject



2
3
4
# File 'lib/banks/standard_chartered.rb', line 2

def min_length
  10
end

#reference_hash_collectionObject



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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# File 'lib/banks/standard_chartered.rb', line 22

def reference_hash_collection
  {
    '001' => 'Main Office',
    '002' => 'Robinson Road (002)',
    '003' => 'Scotts Mall',
    '004' => 'Tampines Central (004)',
    '005' => 'Upper Thomson (005)',
    '006' => 'Upper Thomson (006)',
    '007' => 'Bukit Timah',
    '008' => 'Anchorpoint (008)',
    '009' => 'Marine Parade (009)',
    '011' => 'South Bridge Road',
    '012' => 'Serangoon Garden',
    '013' => 'Selegie',
    '014' => 'Anchorpoint (014)',
    '015' => 'Selegie (015)',
    '016' => 'Robinson Road',
    '017' => 'Anchorpoint (017)',
    '018' => 'Jurong',
    '019' => 'Hougang',
    '020' => 'City Plaza',
    '022' => 'Woodlands',
    '023' => 'Anchorpint',
    '024' => 'Holland Village',
    '025' => 'Direct Banking',
    '028' => 'Item Processing',
    '038' => 'IBanking',
    '040' => 'Marine Parade',
    '041' => 'Jurong East',
    '042' => 'Tampines Central',
    '049' => 'Battery Road (049)',
    '052' => 'Upper Thomson ',
    '053' => 'Bedok',
    '054' => 'Toa Payoh',
    '056' => 'Suntec PB Centre',
    '057' => 'VivoCity',
    '059' => 'ION Orchard',
    '060' => 'Sixth Avenue',
    '061' => 'NEX Serangoon',
    '062' => 'MBFC',
    '063' => 'Clementi Mall',
    '064' => 'Plaza Singapura',
    '065' => 'Mandarin Gallery Banking Centre',
    '066' => 'Jurong Point Bank@Post',
    '068' => 'SPC SME@POST',
    '070' => 'JEM',
    '075' => 'Battery Road',
    '079' => 'GEMS',
    '088' => 'Private Bank',
    '099' => 'ONEBILL',   
  }
end

#swift_codeObject



10
11
12
# File 'lib/banks/standard_chartered.rb', line 10

def swift_code
  'SCBLSGSGXXX'
end