country_currency 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,99 @@
1
+ module CountryCurrency # :nodoc:
2
+ class UnknownCodeError < StandardError; end
3
+
4
+ class << self
5
+
6
+ def for_select(*args)
7
+ Code.for_select(*args)
8
+ end
9
+
10
+ def all
11
+ Code.all
12
+ end
13
+
14
+ DEFAULT_FALLBACK = lambda { |error| raise UnknownCodeError, error }
15
+
16
+ def find(code, &fallback)
17
+ fallback ||= DEFAULT_FALLBACK
18
+ code = code.to_s.upcase
19
+ instance = nil
20
+
21
+ if code.match?(/^\d{2}$/)
22
+ code = "0#{code}" # Make numeric codes three digits
23
+ end
24
+
25
+ instance = if code.match?(/^\d{3}$/)
26
+ all.find { |c| c.numeric == code }
27
+ elsif code.match?(/^[A-Z]{2}$/)
28
+ all.find { |c| c.alpha2 == code }
29
+ elsif code.match?(/^[A-Z]{3}$/)
30
+ all.find { |c| c.alpha3 == code }
31
+ else
32
+ all.find { |c| c.name.casecmp?(code) }
33
+ end
34
+
35
+ return fallback.call "No ISO 3166-1 code could be found for '#{code}'." if instance.nil?
36
+
37
+ instance
38
+ end
39
+
40
+ def search_by_name(str, &fallback)
41
+ fallback ||= DEFAULT_FALLBACK
42
+
43
+ instances = all.select { |c| c.name.to_s.upcase == str.to_s.upcase }
44
+ instances = all.select { |c| c.name.to_s.match(/^#{Regexp.escape(str)}/i) } if instances.empty?
45
+ instances = all.select { |c| c.name.to_s.match(/#{Regexp.escape(str)}/i) } if instances.empty?
46
+ instances = all.select { |c| word_set(c.name) == word_set(str) } if instances.empty?
47
+
48
+ return fallback.call "No ISO 3166-1 codes could be found searching with name '#{str}'." if instances.empty?
49
+
50
+ instances
51
+ end
52
+
53
+ def search_by_calling_code(code, &fallback)
54
+ fallback ||= DEFAULT_FALLBACK
55
+
56
+ code = "+#{code.to_i}" # Normalize code
57
+ instances = all.select { |c| c.calling == code }
58
+
59
+ return fallback.call "No ISO 3166-1 codes could be found searching with calling code '#{code}'." if instances.empty?
60
+
61
+ instances
62
+ end
63
+
64
+ def search_by_calling(code, &fallback) # Alias of search_by_calling_code
65
+ search_by_calling_code code, &fallback
66
+ end
67
+
68
+ def search_by_currency(code, &fallback)
69
+ fallback ||= DEFAULT_FALLBACK
70
+
71
+ code = code.to_s.upcase
72
+ instances = all.select { |c|
73
+ c.currencies.select { |currency|
74
+ currency != code
75
+ }.empty?
76
+ }
77
+
78
+ return fallback.call "No ISO 3166-1 codes could be found searching with currency '#{code}'." if instances.empty?
79
+
80
+ instances
81
+ end
82
+
83
+ def search_by_iban(code, &fallback)
84
+ fallback ||= DEFAULT_FALLBACK
85
+
86
+ code = code.to_s.upcase
87
+ instances = all.select { |c| c.iban == code }
88
+
89
+ return fallback.call "No ISO 3166-1 codes could be found searching with IBAN '#{code}'." if instances.empty?
90
+
91
+ instances
92
+ end
93
+
94
+ private
95
+ def word_set(str)
96
+ str.to_s.upcase.split(/\W/).reject(&:empty?).to_set
97
+ end
98
+ end
99
+ end
@@ -0,0 +1,241 @@
1
+ module CountryCurrency
2
+ class Code
3
+ class ALA < Code #:nodoc:
4
+ self.iban = 'FI'
5
+ end
6
+ class ALB < Code #:nodoc:
7
+ self.iban = 'AL'
8
+ end
9
+ class AND < Code #:nodoc:
10
+ self.iban = 'AD'
11
+ end
12
+ class AUT < Code #:nodoc:
13
+ self.iban = 'AT'
14
+ end
15
+ class AZE < Code #:nodoc:
16
+ self.iban = 'AZ'
17
+ end
18
+ class BHR < Code #:nodoc:
19
+ self.iban = 'BH'
20
+ end
21
+ class BEL < Code #:nodoc:
22
+ self.iban = 'BE'
23
+ end
24
+ class BIH < Code #:nodoc:
25
+ self.iban = 'BA'
26
+ end
27
+ class BRA < Code #:nodoc:
28
+ self.iban = 'BR'
29
+ end
30
+ class BGR < Code #:nodoc:
31
+ self.iban = 'BG'
32
+ end
33
+ class CRI < Code #:nodoc:
34
+ self.iban = 'CR'
35
+ end
36
+ class HRV < Code #:nodoc:
37
+ self.iban = 'HR'
38
+ end
39
+ class CYP < Code #:nodoc:
40
+ self.iban = 'CY'
41
+ end
42
+ class CZE < Code #:nodoc:
43
+ self.iban = 'CZ'
44
+ end
45
+ class DNK < Code #:nodoc:
46
+ self.iban = 'DK'
47
+ end
48
+ class FRO < Code #:nodoc:
49
+ self.iban = 'FO'
50
+ end
51
+ class GRL < Code #:nodoc:
52
+ self.iban = 'GL'
53
+ end
54
+ class DOM < Code #:nodoc:
55
+ self.iban = 'DO'
56
+ end
57
+ class EST < Code #:nodoc:
58
+ self.iban = 'EE'
59
+ end
60
+ class FIN < Code #:nodoc:
61
+ self.iban = 'FI'
62
+ end
63
+ class FRA < Code #:nodoc:
64
+ self.iban = 'FR'
65
+ end
66
+ class GEO < Code #:nodoc:
67
+ self.iban = 'GE'
68
+ end
69
+ class DEU < Code #:nodoc:
70
+ self.iban = 'DE'
71
+ end
72
+ class GGY < Code #:nodoc:
73
+ self.iban = 'GB'
74
+ end
75
+ class GIB < Code #:nodoc:
76
+ self.iban = 'GI'
77
+ end
78
+ class GRC < Code #:nodoc:
79
+ self.iban = 'GR'
80
+ end
81
+ class GTM < Code #:nodoc:
82
+ self.iban = 'GT'
83
+ end
84
+ class HUN < Code #:nodoc:
85
+ self.iban = 'HU'
86
+ end
87
+ class IMN < Code #:nodoc:
88
+ self.iban = 'GB'
89
+ end
90
+ class ISL < Code #:nodoc:
91
+ self.iban = 'IS'
92
+ end
93
+ class IRL < Code #:nodoc:
94
+ self.iban = 'IE'
95
+ end
96
+ class ISR < Code #:nodoc:
97
+ self.iban = 'IL'
98
+ end
99
+ class ITA < Code #:nodoc:
100
+ self.iban = 'IT'
101
+ end
102
+ class JEY < Code #:nodoc:
103
+ self.iban = 'GB'
104
+ end
105
+ class JOR < Code #:nodoc:
106
+ self.iban = 'JO'
107
+ end
108
+ class KAZ < Code #:nodoc:
109
+ self.iban = 'KZ'
110
+ end
111
+ class KWT < Code #:nodoc:
112
+ self.iban = 'KW'
113
+ end
114
+ class LVA < Code #:nodoc:
115
+ self.iban = 'LV'
116
+ end
117
+ class LBN < Code #:nodoc:
118
+ self.iban = 'LB'
119
+ end
120
+ class LIE < Code #:nodoc:
121
+ self.iban = 'LI'
122
+ end
123
+ class LTU < Code #:nodoc:
124
+ self.iban = 'LT'
125
+ end
126
+ class LUX < Code #:nodoc:
127
+ self.iban = 'LU'
128
+ end
129
+ class MKD < Code #:nodoc:
130
+ self.iban = 'MK'
131
+ end
132
+ class MLT < Code #:nodoc:
133
+ self.iban = 'MT'
134
+ end
135
+ class MRT < Code #:nodoc:
136
+ self.iban = 'MR'
137
+ end
138
+ class MUS < Code #:nodoc:
139
+ self.iban = 'MU'
140
+ end
141
+ class MDA < Code #:nodoc:
142
+ self.iban = 'MD'
143
+ end
144
+ class MCO < Code #:nodoc:
145
+ self.iban = 'MC'
146
+ end
147
+ class MNE < Code #:nodoc:
148
+ self.iban = 'ME'
149
+ end
150
+ class NLD < Code #:nodoc:
151
+ self.iban = 'NL'
152
+ end
153
+ class NOR < Code #:nodoc:
154
+ self.iban = 'NO'
155
+ end
156
+ class PAK < Code #:nodoc:
157
+ self.iban = 'PK'
158
+ end
159
+ class PSE < Code #:nodoc:
160
+ self.iban = 'PS'
161
+ end
162
+ class POL < Code #:nodoc:
163
+ self.iban = 'PL'
164
+ end
165
+ class PRT < Code #:nodoc:
166
+ self.iban = 'PT'
167
+ end
168
+ class QAT < Code #:nodoc:
169
+ self.iban = 'QA'
170
+ end
171
+ class ROU < Code #:nodoc:
172
+ self.iban = 'RO'
173
+ end
174
+ class SMR < Code #:nodoc:
175
+ self.iban = 'SM'
176
+ end
177
+ class SAU < Code #:nodoc:
178
+ self.iban = 'SA'
179
+ end
180
+ class SRB < Code #:nodoc:
181
+ self.iban = 'RS'
182
+ end
183
+ class SVK < Code #:nodoc:
184
+ self.iban = 'SK'
185
+ end
186
+ class SVN < Code #:nodoc:
187
+ self.iban = 'SI'
188
+ end
189
+ class ESP < Code #:nodoc:
190
+ self.iban = 'ES'
191
+ end
192
+ class SWE < Code #:nodoc:
193
+ self.iban = 'SE'
194
+ end
195
+ class CHE < Code #:nodoc:
196
+ self.iban = 'CH'
197
+ end
198
+ class TLS < Code #:nodoc:
199
+ self.iban = 'TL'
200
+ end
201
+ class TUN < Code #:nodoc:
202
+ self.iban = 'TN'
203
+ end
204
+ class TUR < Code #:nodoc:
205
+ self.iban = 'TR'
206
+ end
207
+ class ARE < Code #:nodoc:
208
+ self.iban = 'AU'
209
+ end
210
+ class GBR < Code #:nodoc:
211
+ self.iban = 'GB'
212
+ end
213
+ class VGB < Code #:nodoc:
214
+ self.iban = 'VG'
215
+ end
216
+ class GUF < Code #:nodoc:
217
+ self.iban = 'FR'
218
+ end
219
+ class GLP < Code #:nodoc:
220
+ self.iban = 'FR'
221
+ end
222
+ class MTQ < Code #:nodoc:
223
+ self.iban = 'FR'
224
+ end
225
+ class MYT < Code #:nodoc:
226
+ self.iban = 'FR'
227
+ end
228
+ class REU < Code #:nodoc:
229
+ self.iban = 'FR'
230
+ end
231
+ class BLM < Code #:nodoc:
232
+ self.iban = 'FR'
233
+ end
234
+ class MAF < Code #:nodoc:
235
+ self.iban = 'FR'
236
+ end
237
+ class SPM < Code #:nodoc:
238
+ self.iban = 'FR'
239
+ end
240
+ end # end Code
241
+ end # CountryCurrency
@@ -0,0 +1,1501 @@
1
+ # encoding: utf-8
2
+
3
+ module CountryCurrency
4
+ class Code
5
+ class AFG < Code #:nodoc:
6
+ self.numeric = %q{004}
7
+ self.name = %q{Afghanistan}
8
+ self.alpha2 = %q{AF}
9
+ self.alpha3 = %q{AFG}
10
+ end
11
+ class ALA < Code #:nodoc:
12
+ self.numeric = %q{248}
13
+ self.name = %q{Åland Islands}
14
+ self.alpha2 = %q{AX}
15
+ self.alpha3 = %q{ALA}
16
+ end
17
+ class ALB < Code #:nodoc:
18
+ self.numeric = %q{008}
19
+ self.name = %q{Albania}
20
+ self.alpha2 = %q{AL}
21
+ self.alpha3 = %q{ALB}
22
+ end
23
+ class DZA < Code #:nodoc:
24
+ self.numeric = %q{012}
25
+ self.name = %q{Algeria}
26
+ self.alpha2 = %q{DZ}
27
+ self.alpha3 = %q{DZA}
28
+ end
29
+ class ASM < Code #:nodoc:
30
+ self.numeric = %q{016}
31
+ self.name = %q{Samoa (American)}
32
+ self.alpha2 = %q{AS}
33
+ self.alpha3 = %q{ASM}
34
+ end
35
+ class AND < Code #:nodoc:
36
+ self.numeric = %q{020}
37
+ self.name = %q{Andorra}
38
+ self.alpha2 = %q{AD}
39
+ self.alpha3 = %q{AND}
40
+ end
41
+ class AGO < Code #:nodoc:
42
+ self.numeric = %q{024}
43
+ self.name = %q{Angola}
44
+ self.alpha2 = %q{AO}
45
+ self.alpha3 = %q{AGO}
46
+ end
47
+ class AIA < Code #:nodoc:
48
+ self.numeric = %q{660}
49
+ self.name = %q{Anguilla}
50
+ self.alpha2 = %q{AI}
51
+ self.alpha3 = %q{AIA}
52
+ end
53
+ class ATA < Code #:nodoc:
54
+ self.numeric = %q{010}
55
+ self.name = %q{Antarctica}
56
+ self.alpha2 = %q{AQ}
57
+ self.alpha3 = %q{ATA}
58
+ end
59
+ class ATG < Code #:nodoc:
60
+ self.numeric = %q{028}
61
+ self.name = %q{Antigua & Barbuda}
62
+ self.alpha2 = %q{AG}
63
+ self.alpha3 = %q{ATG}
64
+ end
65
+ class ARG < Code #:nodoc:
66
+ self.numeric = %q{032}
67
+ self.name = %q{Argentina}
68
+ self.alpha2 = %q{AR}
69
+ self.alpha3 = %q{ARG}
70
+ end
71
+ class ARM < Code #:nodoc:
72
+ self.numeric = %q{051}
73
+ self.name = %q{Armenia}
74
+ self.alpha2 = %q{AM}
75
+ self.alpha3 = %q{ARM}
76
+ end
77
+ class ABW < Code #:nodoc:
78
+ self.numeric = %q{533}
79
+ self.name = %q{Aruba}
80
+ self.alpha2 = %q{AW}
81
+ self.alpha3 = %q{ABW}
82
+ end
83
+ class AUS < Code #:nodoc:
84
+ self.numeric = %q{036}
85
+ self.name = %q{Australia}
86
+ self.alpha2 = %q{AU}
87
+ self.alpha3 = %q{AUS}
88
+ end
89
+ class AUT < Code #:nodoc:
90
+ self.numeric = %q{040}
91
+ self.name = %q{Austria}
92
+ self.alpha2 = %q{AT}
93
+ self.alpha3 = %q{AUT}
94
+ end
95
+ class AZE < Code #:nodoc:
96
+ self.numeric = %q{031}
97
+ self.name = %q{Azerbaijan}
98
+ self.alpha2 = %q{AZ}
99
+ self.alpha3 = %q{AZE}
100
+ end
101
+ class BHS < Code #:nodoc:
102
+ self.numeric = %q{044}
103
+ self.name = %q{Bahamas}
104
+ self.alpha2 = %q{BS}
105
+ self.alpha3 = %q{BHS}
106
+ end
107
+ class BHR < Code #:nodoc:
108
+ self.numeric = %q{048}
109
+ self.name = %q{Bahrain}
110
+ self.alpha2 = %q{BH}
111
+ self.alpha3 = %q{BHR}
112
+ end
113
+ class BGD < Code #:nodoc:
114
+ self.numeric = %q{050}
115
+ self.name = %q{Bangladesh}
116
+ self.alpha2 = %q{BD}
117
+ self.alpha3 = %q{BGD}
118
+ end
119
+ class BRB < Code #:nodoc:
120
+ self.numeric = %q{052}
121
+ self.name = %q{Barbados}
122
+ self.alpha2 = %q{BB}
123
+ self.alpha3 = %q{BRB}
124
+ end
125
+ class BLR < Code #:nodoc:
126
+ self.numeric = %q{112}
127
+ self.name = %q{Belarus}
128
+ self.alpha2 = %q{BY}
129
+ self.alpha3 = %q{BLR}
130
+ end
131
+ class BEL < Code #:nodoc:
132
+ self.numeric = %q{056}
133
+ self.name = %q{Belgium}
134
+ self.alpha2 = %q{BE}
135
+ self.alpha3 = %q{BEL}
136
+ end
137
+ class BLZ < Code #:nodoc:
138
+ self.numeric = %q{084}
139
+ self.name = %q{Belize}
140
+ self.alpha2 = %q{BZ}
141
+ self.alpha3 = %q{BLZ}
142
+ end
143
+ class BEN < Code #:nodoc:
144
+ self.numeric = %q{204}
145
+ self.name = %q{Benin}
146
+ self.alpha2 = %q{BJ}
147
+ self.alpha3 = %q{BEN}
148
+ end
149
+ class BMU < Code #:nodoc:
150
+ self.numeric = %q{060}
151
+ self.name = %q{Bermuda}
152
+ self.alpha2 = %q{BM}
153
+ self.alpha3 = %q{BMU}
154
+ end
155
+ class BTN < Code #:nodoc:
156
+ self.numeric = %q{064}
157
+ self.name = %q{Bhutan}
158
+ self.alpha2 = %q{BT}
159
+ self.alpha3 = %q{BTN}
160
+ end
161
+ class BOL < Code #:nodoc:
162
+ self.numeric = %q{068}
163
+ self.name = %q{Bolivia}
164
+ self.alpha2 = %q{BO}
165
+ self.alpha3 = %q{BOL}
166
+ end
167
+ class BES < Code #:nodoc:
168
+ self.numeric = %q{535}
169
+ self.name = %q{Caribbean NL}
170
+ self.alpha2 = %q{BQ}
171
+ self.alpha3 = %q{BES}
172
+ end
173
+ class BIH < Code #:nodoc:
174
+ self.numeric = %q{070}
175
+ self.name = %q{Bosnia & Herzegovina}
176
+ self.alpha2 = %q{BA}
177
+ self.alpha3 = %q{BIH}
178
+ end
179
+ class BWA < Code #:nodoc:
180
+ self.numeric = %q{072}
181
+ self.name = %q{Botswana}
182
+ self.alpha2 = %q{BW}
183
+ self.alpha3 = %q{BWA}
184
+ end
185
+ class BVT < Code #:nodoc:
186
+ self.numeric = %q{074}
187
+ self.name = %q{Bouvet Island}
188
+ self.alpha2 = %q{BV}
189
+ self.alpha3 = %q{BVT}
190
+ end
191
+ class BRA < Code #:nodoc:
192
+ self.numeric = %q{076}
193
+ self.name = %q{Brazil}
194
+ self.alpha2 = %q{BR}
195
+ self.alpha3 = %q{BRA}
196
+ end
197
+ class IOT < Code #:nodoc:
198
+ self.numeric = %q{086}
199
+ self.name = %q{British Indian Ocean Territory}
200
+ self.alpha2 = %q{IO}
201
+ self.alpha3 = %q{IOT}
202
+ end
203
+ class BRN < Code #:nodoc:
204
+ self.numeric = %q{096}
205
+ self.name = %q{Brunei}
206
+ self.alpha2 = %q{BN}
207
+ self.alpha3 = %q{BRN}
208
+ end
209
+ class BGR < Code #:nodoc:
210
+ self.numeric = %q{100}
211
+ self.name = %q{Bulgaria}
212
+ self.alpha2 = %q{BG}
213
+ self.alpha3 = %q{BGR}
214
+ end
215
+ class BFA < Code #:nodoc:
216
+ self.numeric = %q{854}
217
+ self.name = %q{Burkina Faso}
218
+ self.alpha2 = %q{BF}
219
+ self.alpha3 = %q{BFA}
220
+ end
221
+ class BDI < Code #:nodoc:
222
+ self.numeric = %q{108}
223
+ self.name = %q{Burundi}
224
+ self.alpha2 = %q{BI}
225
+ self.alpha3 = %q{BDI}
226
+ end
227
+ class CPV < Code #:nodoc:
228
+ self.numeric = %q{132}
229
+ self.name = %q{Cape Verde}
230
+ self.alpha2 = %q{CV}
231
+ self.alpha3 = %q{CPV}
232
+ end
233
+ class KHM < Code #:nodoc:
234
+ self.numeric = %q{116}
235
+ self.name = %q{Cambodia}
236
+ self.alpha2 = %q{KH}
237
+ self.alpha3 = %q{KHM}
238
+ end
239
+ class CMR < Code #:nodoc:
240
+ self.numeric = %q{120}
241
+ self.name = %q{Cameroon}
242
+ self.alpha2 = %q{CM}
243
+ self.alpha3 = %q{CMR}
244
+ end
245
+ class CAN < Code #:nodoc:
246
+ self.numeric = %q{124}
247
+ self.name = %q{Canada}
248
+ self.alpha2 = %q{CA}
249
+ self.alpha3 = %q{CAN}
250
+ end
251
+ class CYM < Code #:nodoc:
252
+ self.numeric = %q{136}
253
+ self.name = %q{Cayman Islands}
254
+ self.alpha2 = %q{KY}
255
+ self.alpha3 = %q{CYM}
256
+ end
257
+ class CAF < Code #:nodoc:
258
+ self.numeric = %q{140}
259
+ self.name = %q{Central African Rep.}
260
+ self.alpha2 = %q{CF}
261
+ self.alpha3 = %q{CAF}
262
+ end
263
+ class TCD < Code #:nodoc:
264
+ self.numeric = %q{148}
265
+ self.name = %q{Chad}
266
+ self.alpha2 = %q{TD}
267
+ self.alpha3 = %q{TCD}
268
+ end
269
+ class CHL < Code #:nodoc:
270
+ self.numeric = %q{152}
271
+ self.name = %q{Chile}
272
+ self.alpha2 = %q{CL}
273
+ self.alpha3 = %q{CHL}
274
+ end
275
+ class CHN < Code #:nodoc:
276
+ self.numeric = %q{156}
277
+ self.name = %q{China}
278
+ self.alpha2 = %q{CN}
279
+ self.alpha3 = %q{CHN}
280
+ end
281
+ class CXR < Code #:nodoc:
282
+ self.numeric = %q{162}
283
+ self.name = %q{Christmas Island}
284
+ self.alpha2 = %q{CX}
285
+ self.alpha3 = %q{CXR}
286
+ end
287
+ class CCK < Code #:nodoc:
288
+ self.numeric = %q{166}
289
+ self.name = %q{Cocos (Keeling) Islands}
290
+ self.alpha2 = %q{CC}
291
+ self.alpha3 = %q{CCK}
292
+ end
293
+ class COL < Code #:nodoc:
294
+ self.numeric = %q{170}
295
+ self.name = %q{Colombia}
296
+ self.alpha2 = %q{CO}
297
+ self.alpha3 = %q{COL}
298
+ end
299
+ class COM < Code #:nodoc:
300
+ self.numeric = %q{174}
301
+ self.name = %q{Comoros}
302
+ self.alpha2 = %q{KM}
303
+ self.alpha3 = %q{COM}
304
+ end
305
+ class COG < Code #:nodoc:
306
+ self.numeric = %q{178}
307
+ self.name = %q{Congo (Rep.)}
308
+ self.alpha2 = %q{CG}
309
+ self.alpha3 = %q{COG}
310
+ end
311
+ class COD < Code #:nodoc:
312
+ self.numeric = %q{180}
313
+ self.name = %q{Congo (Dem. Rep.)}
314
+ self.alpha2 = %q{CD}
315
+ self.alpha3 = %q{COD}
316
+ end
317
+ class COK < Code #:nodoc:
318
+ self.numeric = %q{184}
319
+ self.name = %q{Cook Islands}
320
+ self.alpha2 = %q{CK}
321
+ self.alpha3 = %q{COK}
322
+ end
323
+ class CRI < Code #:nodoc:
324
+ self.numeric = %q{188}
325
+ self.name = %q{Costa Rica}
326
+ self.alpha2 = %q{CR}
327
+ self.alpha3 = %q{CRI}
328
+ end
329
+ class CIV < Code #:nodoc:
330
+ self.numeric = %q{384}
331
+ self.name = %q{Côte d'Ivoire}
332
+ self.alpha2 = %q{CI}
333
+ self.alpha3 = %q{CIV}
334
+ end
335
+ class HRV < Code #:nodoc:
336
+ self.numeric = %q{191}
337
+ self.name = %q{Croatia}
338
+ self.alpha2 = %q{HR}
339
+ self.alpha3 = %q{HRV}
340
+ end
341
+ class CUB < Code #:nodoc:
342
+ self.numeric = %q{192}
343
+ self.name = %q{Cuba}
344
+ self.alpha2 = %q{CU}
345
+ self.alpha3 = %q{CUB}
346
+ end
347
+ class CUW < Code #:nodoc:
348
+ self.numeric = %q{531}
349
+ self.name = %q{Curaçao}
350
+ self.alpha2 = %q{CW}
351
+ self.alpha3 = %q{CUW}
352
+ end
353
+ class CYP < Code #:nodoc:
354
+ self.numeric = %q{196}
355
+ self.name = %q{Cyprus}
356
+ self.alpha2 = %q{CY}
357
+ self.alpha3 = %q{CYP}
358
+ end
359
+ class CZE < Code #:nodoc:
360
+ self.numeric = %q{203}
361
+ self.name = %q{Czech Republic}
362
+ self.alpha2 = %q{CZ}
363
+ self.alpha3 = %q{CZE}
364
+ end
365
+ class DNK < Code #:nodoc:
366
+ self.numeric = %q{208}
367
+ self.name = %q{Denmark}
368
+ self.alpha2 = %q{DK}
369
+ self.alpha3 = %q{DNK}
370
+ end
371
+ class DJI < Code #:nodoc:
372
+ self.numeric = %q{262}
373
+ self.name = %q{Djibouti}
374
+ self.alpha2 = %q{DJ}
375
+ self.alpha3 = %q{DJI}
376
+ end
377
+ class DMA < Code #:nodoc:
378
+ self.numeric = %q{212}
379
+ self.name = %q{Dominica}
380
+ self.alpha2 = %q{DM}
381
+ self.alpha3 = %q{DMA}
382
+ end
383
+ class DOM < Code #:nodoc:
384
+ self.numeric = %q{214}
385
+ self.name = %q{Dominican Republic}
386
+ self.alpha2 = %q{DO}
387
+ self.alpha3 = %q{DOM}
388
+ end
389
+ class ECU < Code #:nodoc:
390
+ self.numeric = %q{218}
391
+ self.name = %q{Ecuador}
392
+ self.alpha2 = %q{EC}
393
+ self.alpha3 = %q{ECU}
394
+ end
395
+ class EGY < Code #:nodoc:
396
+ self.numeric = %q{818}
397
+ self.name = %q{Egypt}
398
+ self.alpha2 = %q{EG}
399
+ self.alpha3 = %q{EGY}
400
+ end
401
+ class SLV < Code #:nodoc:
402
+ self.numeric = %q{222}
403
+ self.name = %q{El Salvador}
404
+ self.alpha2 = %q{SV}
405
+ self.alpha3 = %q{SLV}
406
+ end
407
+ class GNQ < Code #:nodoc:
408
+ self.numeric = %q{226}
409
+ self.name = %q{Equatorial Guinea}
410
+ self.alpha2 = %q{GQ}
411
+ self.alpha3 = %q{GNQ}
412
+ end
413
+ class ERI < Code #:nodoc:
414
+ self.numeric = %q{232}
415
+ self.name = %q{Eritrea}
416
+ self.alpha2 = %q{ER}
417
+ self.alpha3 = %q{ERI}
418
+ end
419
+ class EST < Code #:nodoc:
420
+ self.numeric = %q{233}
421
+ self.name = %q{Estonia}
422
+ self.alpha2 = %q{EE}
423
+ self.alpha3 = %q{EST}
424
+ end
425
+ class ETH < Code #:nodoc:
426
+ self.numeric = %q{231}
427
+ self.name = %q{Ethiopia}
428
+ self.alpha2 = %q{ET}
429
+ self.alpha3 = %q{ETH}
430
+ end
431
+ class FLK < Code #:nodoc:
432
+ self.numeric = %q{238}
433
+ self.name = %q{Falkland Islands}
434
+ self.alpha2 = %q{FK}
435
+ self.alpha3 = %q{FLK}
436
+ end
437
+ class FRO < Code #:nodoc:
438
+ self.numeric = %q{234}
439
+ self.name = %q{Faroe Islands}
440
+ self.alpha2 = %q{FO}
441
+ self.alpha3 = %q{FRO}
442
+ end
443
+ class FJI < Code #:nodoc:
444
+ self.numeric = %q{242}
445
+ self.name = %q{Fiji}
446
+ self.alpha2 = %q{FJ}
447
+ self.alpha3 = %q{FJI}
448
+ end
449
+ class FIN < Code #:nodoc:
450
+ self.numeric = %q{246}
451
+ self.name = %q{Finland}
452
+ self.alpha2 = %q{FI}
453
+ self.alpha3 = %q{FIN}
454
+ end
455
+ class FRA < Code #:nodoc:
456
+ self.numeric = %q{250}
457
+ self.name = %q{France}
458
+ self.alpha2 = %q{FR}
459
+ self.alpha3 = %q{FRA}
460
+ end
461
+ class GUF < Code #:nodoc:
462
+ self.numeric = %q{254}
463
+ self.name = %q{French Guiana}
464
+ self.alpha2 = %q{GF}
465
+ self.alpha3 = %q{GUF}
466
+ end
467
+ class PYF < Code #:nodoc:
468
+ self.numeric = %q{258}
469
+ self.name = %q{French Polynesia}
470
+ self.alpha2 = %q{PF}
471
+ self.alpha3 = %q{PYF}
472
+ end
473
+ class ATF < Code #:nodoc:
474
+ self.numeric = %q{260}
475
+ self.name = %q{French Southern & Antarctic Lands}
476
+ self.alpha2 = %q{TF}
477
+ self.alpha3 = %q{ATF}
478
+ end
479
+ class GAB < Code #:nodoc:
480
+ self.numeric = %q{266}
481
+ self.name = %q{Gabon}
482
+ self.alpha2 = %q{GA}
483
+ self.alpha3 = %q{GAB}
484
+ end
485
+ class GMB < Code #:nodoc:
486
+ self.numeric = %q{270}
487
+ self.name = %q{Gambia}
488
+ self.alpha2 = %q{GM}
489
+ self.alpha3 = %q{GMB}
490
+ end
491
+ class GEO < Code #:nodoc:
492
+ self.numeric = %q{268}
493
+ self.name = %q{Georgia}
494
+ self.alpha2 = %q{GE}
495
+ self.alpha3 = %q{GEO}
496
+ end
497
+ class DEU < Code #:nodoc:
498
+ self.numeric = %q{276}
499
+ self.name = %q{Germany}
500
+ self.alpha2 = %q{DE}
501
+ self.alpha3 = %q{DEU}
502
+ end
503
+ class GHA < Code #:nodoc:
504
+ self.numeric = %q{288}
505
+ self.name = %q{Ghana}
506
+ self.alpha2 = %q{GH}
507
+ self.alpha3 = %q{GHA}
508
+ end
509
+ class GIB < Code #:nodoc:
510
+ self.numeric = %q{292}
511
+ self.name = %q{Gibraltar}
512
+ self.alpha2 = %q{GI}
513
+ self.alpha3 = %q{GIB}
514
+ end
515
+ class GRC < Code #:nodoc:
516
+ self.numeric = %q{300}
517
+ self.name = %q{Greece}
518
+ self.alpha2 = %q{GR}
519
+ self.alpha3 = %q{GRC}
520
+ end
521
+ class GRL < Code #:nodoc:
522
+ self.numeric = %q{304}
523
+ self.name = %q{Greenland}
524
+ self.alpha2 = %q{GL}
525
+ self.alpha3 = %q{GRL}
526
+ end
527
+ class GRD < Code #:nodoc:
528
+ self.numeric = %q{308}
529
+ self.name = %q{Grenada}
530
+ self.alpha2 = %q{GD}
531
+ self.alpha3 = %q{GRD}
532
+ end
533
+ class GLP < Code #:nodoc:
534
+ self.numeric = %q{312}
535
+ self.name = %q{Guadeloupe}
536
+ self.alpha2 = %q{GP}
537
+ self.alpha3 = %q{GLP}
538
+ end
539
+ class GUM < Code #:nodoc:
540
+ self.numeric = %q{316}
541
+ self.name = %q{Guam}
542
+ self.alpha2 = %q{GU}
543
+ self.alpha3 = %q{GUM}
544
+ end
545
+ class GTM < Code #:nodoc:
546
+ self.numeric = %q{320}
547
+ self.name = %q{Guatemala}
548
+ self.alpha2 = %q{GT}
549
+ self.alpha3 = %q{GTM}
550
+ end
551
+ class GGY < Code #:nodoc:
552
+ self.numeric = %q{831}
553
+ self.name = %q{Guernsey}
554
+ self.alpha2 = %q{GG}
555
+ self.alpha3 = %q{GGY}
556
+ end
557
+ class GIN < Code #:nodoc:
558
+ self.numeric = %q{324}
559
+ self.name = %q{Guinea}
560
+ self.alpha2 = %q{GN}
561
+ self.alpha3 = %q{GIN}
562
+ end
563
+ class GNB < Code #:nodoc:
564
+ self.numeric = %q{624}
565
+ self.name = %q{Guinea-Bissau}
566
+ self.alpha2 = %q{GW}
567
+ self.alpha3 = %q{GNB}
568
+ end
569
+ class GUY < Code #:nodoc:
570
+ self.numeric = %q{328}
571
+ self.name = %q{Guyana}
572
+ self.alpha2 = %q{GY}
573
+ self.alpha3 = %q{GUY}
574
+ end
575
+ class HTI < Code #:nodoc:
576
+ self.numeric = %q{332}
577
+ self.name = %q{Haiti}
578
+ self.alpha2 = %q{HT}
579
+ self.alpha3 = %q{HTI}
580
+ end
581
+ class HMD < Code #:nodoc:
582
+ self.numeric = %q{334}
583
+ self.name = %q{Heard Island & McDonald Islands}
584
+ self.alpha2 = %q{HM}
585
+ self.alpha3 = %q{HMD}
586
+ end
587
+ class VAT < Code #:nodoc:
588
+ self.numeric = %q{336}
589
+ self.name = %q{Vatican City}
590
+ self.alpha2 = %q{VA}
591
+ self.alpha3 = %q{VAT}
592
+ end
593
+ class HND < Code #:nodoc:
594
+ self.numeric = %q{340}
595
+ self.name = %q{Honduras}
596
+ self.alpha2 = %q{HN}
597
+ self.alpha3 = %q{HND}
598
+ end
599
+ class HKG < Code #:nodoc:
600
+ self.numeric = %q{344}
601
+ self.name = %q{Hong Kong}
602
+ self.alpha2 = %q{HK}
603
+ self.alpha3 = %q{HKG}
604
+ end
605
+ class HUN < Code #:nodoc:
606
+ self.numeric = %q{348}
607
+ self.name = %q{Hungary}
608
+ self.alpha2 = %q{HU}
609
+ self.alpha3 = %q{HUN}
610
+ end
611
+ class ISL < Code #:nodoc:
612
+ self.numeric = %q{352}
613
+ self.name = %q{Iceland}
614
+ self.alpha2 = %q{IS}
615
+ self.alpha3 = %q{ISL}
616
+ end
617
+ class IND < Code #:nodoc:
618
+ self.numeric = %q{356}
619
+ self.name = %q{India}
620
+ self.alpha2 = %q{IN}
621
+ self.alpha3 = %q{IND}
622
+ end
623
+ class IDN < Code #:nodoc:
624
+ self.numeric = %q{360}
625
+ self.name = %q{Indonesia}
626
+ self.alpha2 = %q{ID}
627
+ self.alpha3 = %q{IDN}
628
+ end
629
+ class IRN < Code #:nodoc:
630
+ self.numeric = %q{364}
631
+ self.name = %q{Iran}
632
+ self.alpha2 = %q{IR}
633
+ self.alpha3 = %q{IRN}
634
+ end
635
+ class IRQ < Code #:nodoc:
636
+ self.numeric = %q{368}
637
+ self.name = %q{Iraq}
638
+ self.alpha2 = %q{IQ}
639
+ self.alpha3 = %q{IRQ}
640
+ end
641
+ class IRL < Code #:nodoc:
642
+ self.numeric = %q{372}
643
+ self.name = %q{Ireland}
644
+ self.alpha2 = %q{IE}
645
+ self.alpha3 = %q{IRL}
646
+ end
647
+ class IMN < Code #:nodoc:
648
+ self.numeric = %q{833}
649
+ self.name = %q{Isle of Man}
650
+ self.alpha2 = %q{IM}
651
+ self.alpha3 = %q{IMN}
652
+ end
653
+ class ISR < Code #:nodoc:
654
+ self.numeric = %q{376}
655
+ self.name = %q{Israel}
656
+ self.alpha2 = %q{IL}
657
+ self.alpha3 = %q{ISR}
658
+ end
659
+ class ITA < Code #:nodoc:
660
+ self.numeric = %q{380}
661
+ self.name = %q{Italy}
662
+ self.alpha2 = %q{IT}
663
+ self.alpha3 = %q{ITA}
664
+ end
665
+ class JAM < Code #:nodoc:
666
+ self.numeric = %q{388}
667
+ self.name = %q{Jamaica}
668
+ self.alpha2 = %q{JM}
669
+ self.alpha3 = %q{JAM}
670
+ end
671
+ class JPN < Code #:nodoc:
672
+ self.numeric = %q{392}
673
+ self.name = %q{Japan}
674
+ self.alpha2 = %q{JP}
675
+ self.alpha3 = %q{JPN}
676
+ end
677
+ class JEY < Code #:nodoc:
678
+ self.numeric = %q{832}
679
+ self.name = %q{Jersey}
680
+ self.alpha2 = %q{JE}
681
+ self.alpha3 = %q{JEY}
682
+ end
683
+ class JOR < Code #:nodoc:
684
+ self.numeric = %q{400}
685
+ self.name = %q{Jordan}
686
+ self.alpha2 = %q{JO}
687
+ self.alpha3 = %q{JOR}
688
+ end
689
+ class KAZ < Code #:nodoc:
690
+ self.numeric = %q{398}
691
+ self.name = %q{Kazakhstan}
692
+ self.alpha2 = %q{KZ}
693
+ self.alpha3 = %q{KAZ}
694
+ end
695
+ class KEN < Code #:nodoc:
696
+ self.numeric = %q{404}
697
+ self.name = %q{Kenya}
698
+ self.alpha2 = %q{KE}
699
+ self.alpha3 = %q{KEN}
700
+ end
701
+ class KIR < Code #:nodoc:
702
+ self.numeric = %q{296}
703
+ self.name = %q{Kiribati}
704
+ self.alpha2 = %q{KI}
705
+ self.alpha3 = %q{KIR}
706
+ end
707
+ class PRK < Code #:nodoc:
708
+ self.numeric = %q{408}
709
+ self.name = %q{Korea (North)}
710
+ self.alpha2 = %q{KP}
711
+ self.alpha3 = %q{PRK}
712
+ end
713
+ class KOR < Code #:nodoc:
714
+ self.numeric = %q{410}
715
+ self.name = %q{Korea (South)}
716
+ self.alpha2 = %q{KR}
717
+ self.alpha3 = %q{KOR}
718
+ end
719
+ class KWT < Code #:nodoc:
720
+ self.numeric = %q{414}
721
+ self.name = %q{Kuwait}
722
+ self.alpha2 = %q{KW}
723
+ self.alpha3 = %q{KWT}
724
+ end
725
+ class KGZ < Code #:nodoc:
726
+ self.numeric = %q{417}
727
+ self.name = %q{Kyrgyzstan}
728
+ self.alpha2 = %q{KG}
729
+ self.alpha3 = %q{KGZ}
730
+ end
731
+ class LAO < Code #:nodoc:
732
+ self.numeric = %q{418}
733
+ self.name = %q{Laos}
734
+ self.alpha2 = %q{LA}
735
+ self.alpha3 = %q{LAO}
736
+ end
737
+ class LVA < Code #:nodoc:
738
+ self.numeric = %q{428}
739
+ self.name = %q{Latvia}
740
+ self.alpha2 = %q{LV}
741
+ self.alpha3 = %q{LVA}
742
+ end
743
+ class LBN < Code #:nodoc:
744
+ self.numeric = %q{422}
745
+ self.name = %q{Lebanon}
746
+ self.alpha2 = %q{LB}
747
+ self.alpha3 = %q{LBN}
748
+ end
749
+ class LSO < Code #:nodoc:
750
+ self.numeric = %q{426}
751
+ self.name = %q{Lesotho}
752
+ self.alpha2 = %q{LS}
753
+ self.alpha3 = %q{LSO}
754
+ end
755
+ class LBR < Code #:nodoc:
756
+ self.numeric = %q{430}
757
+ self.name = %q{Liberia}
758
+ self.alpha2 = %q{LR}
759
+ self.alpha3 = %q{LBR}
760
+ end
761
+ class LBY < Code #:nodoc:
762
+ self.numeric = %q{434}
763
+ self.name = %q{Libya}
764
+ self.alpha2 = %q{LY}
765
+ self.alpha3 = %q{LBY}
766
+ end
767
+ class LIE < Code #:nodoc:
768
+ self.numeric = %q{438}
769
+ self.name = %q{Liechtenstein}
770
+ self.alpha2 = %q{LI}
771
+ self.alpha3 = %q{LIE}
772
+ end
773
+ class LTU < Code #:nodoc:
774
+ self.numeric = %q{440}
775
+ self.name = %q{Lithuania}
776
+ self.alpha2 = %q{LT}
777
+ self.alpha3 = %q{LTU}
778
+ end
779
+ class LUX < Code #:nodoc:
780
+ self.numeric = %q{442}
781
+ self.name = %q{Luxembourg}
782
+ self.alpha2 = %q{LU}
783
+ self.alpha3 = %q{LUX}
784
+ end
785
+ class MAC < Code #:nodoc:
786
+ self.numeric = %q{446}
787
+ self.name = %q{Macau}
788
+ self.alpha2 = %q{MO}
789
+ self.alpha3 = %q{MAC}
790
+ end
791
+ class MKD < Code #:nodoc:
792
+ self.numeric = %q{807}
793
+ self.name = %q{Macedonia}
794
+ self.alpha2 = %q{MK}
795
+ self.alpha3 = %q{MKD}
796
+ end
797
+ class MDG < Code #:nodoc:
798
+ self.numeric = %q{450}
799
+ self.name = %q{Madagascar}
800
+ self.alpha2 = %q{MG}
801
+ self.alpha3 = %q{MDG}
802
+ end
803
+ class MWI < Code #:nodoc:
804
+ self.numeric = %q{454}
805
+ self.name = %q{Malawi}
806
+ self.alpha2 = %q{MW}
807
+ self.alpha3 = %q{MWI}
808
+ end
809
+ class MYS < Code #:nodoc:
810
+ self.numeric = %q{458}
811
+ self.name = %q{Malaysia}
812
+ self.alpha2 = %q{MY}
813
+ self.alpha3 = %q{MYS}
814
+ end
815
+ class MDV < Code #:nodoc:
816
+ self.numeric = %q{462}
817
+ self.name = %q{Maldives}
818
+ self.alpha2 = %q{MV}
819
+ self.alpha3 = %q{MDV}
820
+ end
821
+ class MLI < Code #:nodoc:
822
+ self.numeric = %q{466}
823
+ self.name = %q{Mali}
824
+ self.alpha2 = %q{ML}
825
+ self.alpha3 = %q{MLI}
826
+ end
827
+ class MLT < Code #:nodoc:
828
+ self.numeric = %q{470}
829
+ self.name = %q{Malta}
830
+ self.alpha2 = %q{MT}
831
+ self.alpha3 = %q{MLT}
832
+ end
833
+ class MHL < Code #:nodoc:
834
+ self.numeric = %q{584}
835
+ self.name = %q{Marshall Islands}
836
+ self.alpha2 = %q{MH}
837
+ self.alpha3 = %q{MHL}
838
+ end
839
+ class MTQ < Code #:nodoc:
840
+ self.numeric = %q{474}
841
+ self.name = %q{Martinique}
842
+ self.alpha2 = %q{MQ}
843
+ self.alpha3 = %q{MTQ}
844
+ end
845
+ class MRT < Code #:nodoc:
846
+ self.numeric = %q{478}
847
+ self.name = %q{Mauritania}
848
+ self.alpha2 = %q{MR}
849
+ self.alpha3 = %q{MRT}
850
+ end
851
+ class MUS < Code #:nodoc:
852
+ self.numeric = %q{480}
853
+ self.name = %q{Mauritius}
854
+ self.alpha2 = %q{MU}
855
+ self.alpha3 = %q{MUS}
856
+ end
857
+ class MYT < Code #:nodoc:
858
+ self.numeric = %q{175}
859
+ self.name = %q{Mayotte}
860
+ self.alpha2 = %q{YT}
861
+ self.alpha3 = %q{MYT}
862
+ end
863
+ class MEX < Code #:nodoc:
864
+ self.numeric = %q{484}
865
+ self.name = %q{Mexico}
866
+ self.alpha2 = %q{MX}
867
+ self.alpha3 = %q{MEX}
868
+ end
869
+ class FSM < Code #:nodoc:
870
+ self.numeric = %q{583}
871
+ self.name = %q{Micronesia}
872
+ self.alpha2 = %q{FM}
873
+ self.alpha3 = %q{FSM}
874
+ end
875
+ class MDA < Code #:nodoc:
876
+ self.numeric = %q{498}
877
+ self.name = %q{Moldova}
878
+ self.alpha2 = %q{MD}
879
+ self.alpha3 = %q{MDA}
880
+ end
881
+ class MCO < Code #:nodoc:
882
+ self.numeric = %q{492}
883
+ self.name = %q{Monaco}
884
+ self.alpha2 = %q{MC}
885
+ self.alpha3 = %q{MCO}
886
+ end
887
+ class MNG < Code #:nodoc:
888
+ self.numeric = %q{496}
889
+ self.name = %q{Mongolia}
890
+ self.alpha2 = %q{MN}
891
+ self.alpha3 = %q{MNG}
892
+ end
893
+ class MNE < Code #:nodoc:
894
+ self.numeric = %q{499}
895
+ self.name = %q{Montenegro}
896
+ self.alpha2 = %q{ME}
897
+ self.alpha3 = %q{MNE}
898
+ end
899
+ class MSR < Code #:nodoc:
900
+ self.numeric = %q{500}
901
+ self.name = %q{Montserrat}
902
+ self.alpha2 = %q{MS}
903
+ self.alpha3 = %q{MSR}
904
+ end
905
+ class MAR < Code #:nodoc:
906
+ self.numeric = %q{504}
907
+ self.name = %q{Morocco}
908
+ self.alpha2 = %q{MA}
909
+ self.alpha3 = %q{MAR}
910
+ end
911
+ class MOZ < Code #:nodoc:
912
+ self.numeric = %q{508}
913
+ self.name = %q{Mozambique}
914
+ self.alpha2 = %q{MZ}
915
+ self.alpha3 = %q{MOZ}
916
+ end
917
+ class MMR < Code #:nodoc:
918
+ self.numeric = %q{104}
919
+ self.name = %q{Myanmar (Burma)}
920
+ self.alpha2 = %q{MM}
921
+ self.alpha3 = %q{MMR}
922
+ end
923
+ class NAM < Code #:nodoc:
924
+ self.numeric = %q{516}
925
+ self.name = %q{Namibia}
926
+ self.alpha2 = %q{NA}
927
+ self.alpha3 = %q{NAM}
928
+ end
929
+ class NRU < Code #:nodoc:
930
+ self.numeric = %q{520}
931
+ self.name = %q{Nauru}
932
+ self.alpha2 = %q{NR}
933
+ self.alpha3 = %q{NRU}
934
+ end
935
+ class NPL < Code #:nodoc:
936
+ self.numeric = %q{524}
937
+ self.name = %q{Nepal}
938
+ self.alpha2 = %q{NP}
939
+ self.alpha3 = %q{NPL}
940
+ end
941
+ class NLD < Code #:nodoc:
942
+ self.numeric = %q{528}
943
+ self.name = %q{Netherlands}
944
+ self.alpha2 = %q{NL}
945
+ self.alpha3 = %q{NLD}
946
+ end
947
+ class NCL < Code #:nodoc:
948
+ self.numeric = %q{540}
949
+ self.name = %q{New Caledonia}
950
+ self.alpha2 = %q{NC}
951
+ self.alpha3 = %q{NCL}
952
+ end
953
+ class NZL < Code #:nodoc:
954
+ self.numeric = %q{554}
955
+ self.name = %q{New Zealand}
956
+ self.alpha2 = %q{NZ}
957
+ self.alpha3 = %q{NZL}
958
+ end
959
+ class NIC < Code #:nodoc:
960
+ self.numeric = %q{558}
961
+ self.name = %q{Nicaragua}
962
+ self.alpha2 = %q{NI}
963
+ self.alpha3 = %q{NIC}
964
+ end
965
+ class NER < Code #:nodoc:
966
+ self.numeric = %q{562}
967
+ self.name = %q{Niger}
968
+ self.alpha2 = %q{NE}
969
+ self.alpha3 = %q{NER}
970
+ end
971
+ class NGA < Code #:nodoc:
972
+ self.numeric = %q{566}
973
+ self.name = %q{Nigeria}
974
+ self.alpha2 = %q{NG}
975
+ self.alpha3 = %q{NGA}
976
+ end
977
+ class NIU < Code #:nodoc:
978
+ self.numeric = %q{570}
979
+ self.name = %q{Niue}
980
+ self.alpha2 = %q{NU}
981
+ self.alpha3 = %q{NIU}
982
+ end
983
+ class NFK < Code #:nodoc:
984
+ self.numeric = %q{574}
985
+ self.name = %q{Norfolk Island}
986
+ self.alpha2 = %q{NF}
987
+ self.alpha3 = %q{NFK}
988
+ end
989
+ class MNP < Code #:nodoc:
990
+ self.numeric = %q{580}
991
+ self.name = %q{Northern Mariana Islands}
992
+ self.alpha2 = %q{MP}
993
+ self.alpha3 = %q{MNP}
994
+ end
995
+ class NOR < Code #:nodoc:
996
+ self.numeric = %q{578}
997
+ self.name = %q{Norway}
998
+ self.alpha2 = %q{NO}
999
+ self.alpha3 = %q{NOR}
1000
+ end
1001
+ class OMN < Code #:nodoc:
1002
+ self.numeric = %q{512}
1003
+ self.name = %q{Oman}
1004
+ self.alpha2 = %q{OM}
1005
+ self.alpha3 = %q{OMN}
1006
+ end
1007
+ class PAK < Code #:nodoc:
1008
+ self.numeric = %q{586}
1009
+ self.name = %q{Pakistan}
1010
+ self.alpha2 = %q{PK}
1011
+ self.alpha3 = %q{PAK}
1012
+ end
1013
+ class PLW < Code #:nodoc:
1014
+ self.numeric = %q{585}
1015
+ self.name = %q{Palau}
1016
+ self.alpha2 = %q{PW}
1017
+ self.alpha3 = %q{PLW}
1018
+ end
1019
+ class PSE < Code #:nodoc:
1020
+ self.numeric = %q{275}
1021
+ self.name = %q{Palestine}
1022
+ self.alpha2 = %q{PS}
1023
+ self.alpha3 = %q{PSE}
1024
+ end
1025
+ class PAN < Code #:nodoc:
1026
+ self.numeric = %q{591}
1027
+ self.name = %q{Panama}
1028
+ self.alpha2 = %q{PA}
1029
+ self.alpha3 = %q{PAN}
1030
+ end
1031
+ class PNG < Code #:nodoc:
1032
+ self.numeric = %q{598}
1033
+ self.name = %q{Papua New Guinea}
1034
+ self.alpha2 = %q{PG}
1035
+ self.alpha3 = %q{PNG}
1036
+ end
1037
+ class PRY < Code #:nodoc:
1038
+ self.numeric = %q{600}
1039
+ self.name = %q{Paraguay}
1040
+ self.alpha2 = %q{PY}
1041
+ self.alpha3 = %q{PRY}
1042
+ end
1043
+ class PER < Code #:nodoc:
1044
+ self.numeric = %q{604}
1045
+ self.name = %q{Peru}
1046
+ self.alpha2 = %q{PE}
1047
+ self.alpha3 = %q{PER}
1048
+ end
1049
+ class PHL < Code #:nodoc:
1050
+ self.numeric = %q{608}
1051
+ self.name = %q{Philippines}
1052
+ self.alpha2 = %q{PH}
1053
+ self.alpha3 = %q{PHL}
1054
+ end
1055
+ class PCN < Code #:nodoc:
1056
+ self.numeric = %q{612}
1057
+ self.name = %q{Pitcairn}
1058
+ self.alpha2 = %q{PN}
1059
+ self.alpha3 = %q{PCN}
1060
+ end
1061
+ class POL < Code #:nodoc:
1062
+ self.numeric = %q{616}
1063
+ self.name = %q{Poland}
1064
+ self.alpha2 = %q{PL}
1065
+ self.alpha3 = %q{POL}
1066
+ end
1067
+ class PRT < Code #:nodoc:
1068
+ self.numeric = %q{620}
1069
+ self.name = %q{Portugal}
1070
+ self.alpha2 = %q{PT}
1071
+ self.alpha3 = %q{PRT}
1072
+ end
1073
+ class PRI < Code #:nodoc:
1074
+ self.numeric = %q{630}
1075
+ self.name = %q{Puerto Rico}
1076
+ self.alpha2 = %q{PR}
1077
+ self.alpha3 = %q{PRI}
1078
+ end
1079
+ class QAT < Code #:nodoc:
1080
+ self.numeric = %q{634}
1081
+ self.name = %q{Qatar}
1082
+ self.alpha2 = %q{QA}
1083
+ self.alpha3 = %q{QAT}
1084
+ end
1085
+ class REU < Code #:nodoc:
1086
+ self.numeric = %q{638}
1087
+ self.name = %q{Réunion}
1088
+ self.alpha2 = %q{RE}
1089
+ self.alpha3 = %q{REU}
1090
+ end
1091
+ class ROU < Code #:nodoc:
1092
+ self.numeric = %q{642}
1093
+ self.name = %q{Romania}
1094
+ self.alpha2 = %q{RO}
1095
+ self.alpha3 = %q{ROU}
1096
+ end
1097
+ class RUS < Code #:nodoc:
1098
+ self.numeric = %q{643}
1099
+ self.name = %q{Russia}
1100
+ self.alpha2 = %q{RU}
1101
+ self.alpha3 = %q{RUS}
1102
+ end
1103
+ class RWA < Code #:nodoc:
1104
+ self.numeric = %q{646}
1105
+ self.name = %q{Rwanda}
1106
+ self.alpha2 = %q{RW}
1107
+ self.alpha3 = %q{RWA}
1108
+ end
1109
+ class BLM < Code #:nodoc:
1110
+ self.numeric = %q{652}
1111
+ self.name = %q{St Barthelemy}
1112
+ self.alpha2 = %q{BL}
1113
+ self.alpha3 = %q{BLM}
1114
+ end
1115
+ class SHN < Code #:nodoc:
1116
+ self.numeric = %q{654}
1117
+ self.name = %q{St Helena}
1118
+ self.alpha2 = %q{SH}
1119
+ self.alpha3 = %q{SHN}
1120
+ end
1121
+ class KNA < Code #:nodoc:
1122
+ self.numeric = %q{659}
1123
+ self.name = %q{St Kitts & Nevis}
1124
+ self.alpha2 = %q{KN}
1125
+ self.alpha3 = %q{KNA}
1126
+ end
1127
+ class LCA < Code #:nodoc:
1128
+ self.numeric = %q{662}
1129
+ self.name = %q{St Lucia}
1130
+ self.alpha2 = %q{LC}
1131
+ self.alpha3 = %q{LCA}
1132
+ end
1133
+ class MAF < Code #:nodoc:
1134
+ self.numeric = %q{663}
1135
+ self.name = %q{St Martin (French)}
1136
+ self.alpha2 = %q{MF}
1137
+ self.alpha3 = %q{MAF}
1138
+ end
1139
+ class SPM < Code #:nodoc:
1140
+ self.numeric = %q{666}
1141
+ self.name = %q{St Pierre & Miquelon}
1142
+ self.alpha2 = %q{PM}
1143
+ self.alpha3 = %q{SPM}
1144
+ end
1145
+ class VCT < Code #:nodoc:
1146
+ self.numeric = %q{670}
1147
+ self.name = %q{St Vincent}
1148
+ self.alpha2 = %q{VC}
1149
+ self.alpha3 = %q{VCT}
1150
+ end
1151
+ class WSM < Code #:nodoc:
1152
+ self.numeric = %q{882}
1153
+ self.name = %q{Samoa (western)}
1154
+ self.alpha2 = %q{WS}
1155
+ self.alpha3 = %q{WSM}
1156
+ end
1157
+ class SMR < Code #:nodoc:
1158
+ self.numeric = %q{674}
1159
+ self.name = %q{San Marino}
1160
+ self.alpha2 = %q{SM}
1161
+ self.alpha3 = %q{SMR}
1162
+ end
1163
+ class STP < Code #:nodoc:
1164
+ self.numeric = %q{678}
1165
+ self.name = %q{Sao Tome & Principe}
1166
+ self.alpha2 = %q{ST}
1167
+ self.alpha3 = %q{STP}
1168
+ end
1169
+ class SAU < Code #:nodoc:
1170
+ self.numeric = %q{682}
1171
+ self.name = %q{Saudi Arabia}
1172
+ self.alpha2 = %q{SA}
1173
+ self.alpha3 = %q{SAU}
1174
+ end
1175
+ class SEN < Code #:nodoc:
1176
+ self.numeric = %q{686}
1177
+ self.name = %q{Senegal}
1178
+ self.alpha2 = %q{SN}
1179
+ self.alpha3 = %q{SEN}
1180
+ end
1181
+ class SRB < Code #:nodoc:
1182
+ self.numeric = %q{688}
1183
+ self.name = %q{Serbia}
1184
+ self.alpha2 = %q{RS}
1185
+ self.alpha3 = %q{SRB}
1186
+ end
1187
+ class SYC < Code #:nodoc:
1188
+ self.numeric = %q{690}
1189
+ self.name = %q{Seychelles}
1190
+ self.alpha2 = %q{SC}
1191
+ self.alpha3 = %q{SYC}
1192
+ end
1193
+ class SLE < Code #:nodoc:
1194
+ self.numeric = %q{694}
1195
+ self.name = %q{Sierra Leone}
1196
+ self.alpha2 = %q{SL}
1197
+ self.alpha3 = %q{SLE}
1198
+ end
1199
+ class SGP < Code #:nodoc:
1200
+ self.numeric = %q{702}
1201
+ self.name = %q{Singapore}
1202
+ self.alpha2 = %q{SG}
1203
+ self.alpha3 = %q{SGP}
1204
+ end
1205
+ class SXM < Code #:nodoc:
1206
+ self.numeric = %q{534}
1207
+ self.name = %q{St Maarten (Dutch)}
1208
+ self.alpha2 = %q{SX}
1209
+ self.alpha3 = %q{SXM}
1210
+ end
1211
+ class SVK < Code #:nodoc:
1212
+ self.numeric = %q{703}
1213
+ self.name = %q{Slovakia}
1214
+ self.alpha2 = %q{SK}
1215
+ self.alpha3 = %q{SVK}
1216
+ end
1217
+ class SVN < Code #:nodoc:
1218
+ self.numeric = %q{705}
1219
+ self.name = %q{Slovenia}
1220
+ self.alpha2 = %q{SI}
1221
+ self.alpha3 = %q{SVN}
1222
+ end
1223
+ class SLB < Code #:nodoc:
1224
+ self.numeric = %q{090}
1225
+ self.name = %q{Solomon Islands}
1226
+ self.alpha2 = %q{SB}
1227
+ self.alpha3 = %q{SLB}
1228
+ end
1229
+ class SOM < Code #:nodoc:
1230
+ self.numeric = %q{706}
1231
+ self.name = %q{Somalia}
1232
+ self.alpha2 = %q{SO}
1233
+ self.alpha3 = %q{SOM}
1234
+ end
1235
+ class ZAF < Code #:nodoc:
1236
+ self.numeric = %q{710}
1237
+ self.name = %q{South Africa}
1238
+ self.alpha2 = %q{ZA}
1239
+ self.alpha3 = %q{ZAF}
1240
+ end
1241
+ class SGS < Code #:nodoc:
1242
+ self.numeric = %q{239}
1243
+ self.name = %q{South Georgia & the South Sandwich Islands}
1244
+ self.alpha2 = %q{GS}
1245
+ self.alpha3 = %q{SGS}
1246
+ end
1247
+ class SSD < Code #:nodoc:
1248
+ self.numeric = %q{728}
1249
+ self.name = %q{South Sudan}
1250
+ self.alpha2 = %q{SS}
1251
+ self.alpha3 = %q{SSD}
1252
+ end
1253
+ class ESP < Code #:nodoc:
1254
+ self.numeric = %q{724}
1255
+ self.name = %q{Spain}
1256
+ self.alpha2 = %q{ES}
1257
+ self.alpha3 = %q{ESP}
1258
+ end
1259
+ class LKA < Code #:nodoc:
1260
+ self.numeric = %q{144}
1261
+ self.name = %q{Sri Lanka}
1262
+ self.alpha2 = %q{LK}
1263
+ self.alpha3 = %q{LKA}
1264
+ end
1265
+ class SDN < Code #:nodoc:
1266
+ self.numeric = %q{729}
1267
+ self.name = %q{Sudan}
1268
+ self.alpha2 = %q{SD}
1269
+ self.alpha3 = %q{SDN}
1270
+ end
1271
+ class SUR < Code #:nodoc:
1272
+ self.numeric = %q{740}
1273
+ self.name = %q{Suriname}
1274
+ self.alpha2 = %q{SR}
1275
+ self.alpha3 = %q{SUR}
1276
+ end
1277
+ class SJM < Code #:nodoc:
1278
+ self.numeric = %q{744}
1279
+ self.name = %q{Svalbard & Jan Mayen}
1280
+ self.alpha2 = %q{SJ}
1281
+ self.alpha3 = %q{SJM}
1282
+ end
1283
+ class SWZ < Code #:nodoc:
1284
+ self.numeric = %q{748}
1285
+ self.name = %q{Swaziland}
1286
+ self.alpha2 = %q{SZ}
1287
+ self.alpha3 = %q{SWZ}
1288
+ end
1289
+ class SWE < Code #:nodoc:
1290
+ self.numeric = %q{752}
1291
+ self.name = %q{Sweden}
1292
+ self.alpha2 = %q{SE}
1293
+ self.alpha3 = %q{SWE}
1294
+ end
1295
+ class CHE < Code #:nodoc:
1296
+ self.numeric = %q{756}
1297
+ self.name = %q{Switzerland}
1298
+ self.alpha2 = %q{CH}
1299
+ self.alpha3 = %q{CHE}
1300
+ end
1301
+ class SYR < Code #:nodoc:
1302
+ self.numeric = %q{760}
1303
+ self.name = %q{Syria}
1304
+ self.alpha2 = %q{SY}
1305
+ self.alpha3 = %q{SYR}
1306
+ end
1307
+ class TWN < Code #:nodoc:
1308
+ self.numeric = %q{158}
1309
+ self.name = %q{Taiwan}
1310
+ self.alpha2 = %q{TW}
1311
+ self.alpha3 = %q{TWN}
1312
+ end
1313
+ class TJK < Code #:nodoc:
1314
+ self.numeric = %q{762}
1315
+ self.name = %q{Tajikistan}
1316
+ self.alpha2 = %q{TJ}
1317
+ self.alpha3 = %q{TJK}
1318
+ end
1319
+ class TZA < Code #:nodoc:
1320
+ self.numeric = %q{834}
1321
+ self.name = %q{Tanzania}
1322
+ self.alpha2 = %q{TZ}
1323
+ self.alpha3 = %q{TZA}
1324
+ end
1325
+ class THA < Code #:nodoc:
1326
+ self.numeric = %q{764}
1327
+ self.name = %q{Thailand}
1328
+ self.alpha2 = %q{TH}
1329
+ self.alpha3 = %q{THA}
1330
+ end
1331
+ class TLS < Code #:nodoc:
1332
+ self.numeric = %q{626}
1333
+ self.name = %q{East Timor}
1334
+ self.alpha2 = %q{TL}
1335
+ self.alpha3 = %q{TLS}
1336
+ end
1337
+ class TGO < Code #:nodoc:
1338
+ self.numeric = %q{768}
1339
+ self.name = %q{Togo}
1340
+ self.alpha2 = %q{TG}
1341
+ self.alpha3 = %q{TGO}
1342
+ end
1343
+ class TKL < Code #:nodoc:
1344
+ self.numeric = %q{772}
1345
+ self.name = %q{Tokelau}
1346
+ self.alpha2 = %q{TK}
1347
+ self.alpha3 = %q{TKL}
1348
+ end
1349
+ class TON < Code #:nodoc:
1350
+ self.numeric = %q{776}
1351
+ self.name = %q{Tonga}
1352
+ self.alpha2 = %q{TO}
1353
+ self.alpha3 = %q{TON}
1354
+ end
1355
+ class TTO < Code #:nodoc:
1356
+ self.numeric = %q{780}
1357
+ self.name = %q{Trinidad & Tobago}
1358
+ self.alpha2 = %q{TT}
1359
+ self.alpha3 = %q{TTO}
1360
+ end
1361
+ class TUN < Code #:nodoc:
1362
+ self.numeric = %q{788}
1363
+ self.name = %q{Tunisia}
1364
+ self.alpha2 = %q{TN}
1365
+ self.alpha3 = %q{TUN}
1366
+ end
1367
+ class TUR < Code #:nodoc:
1368
+ self.numeric = %q{792}
1369
+ self.name = %q{Turkey}
1370
+ self.alpha2 = %q{TR}
1371
+ self.alpha3 = %q{TUR}
1372
+ end
1373
+ class TKM < Code #:nodoc:
1374
+ self.numeric = %q{795}
1375
+ self.name = %q{Turkmenistan}
1376
+ self.alpha2 = %q{TM}
1377
+ self.alpha3 = %q{TKM}
1378
+ end
1379
+ class TCA < Code #:nodoc:
1380
+ self.numeric = %q{796}
1381
+ self.name = %q{Turks & Caicos Is}
1382
+ self.alpha2 = %q{TC}
1383
+ self.alpha3 = %q{TCA}
1384
+ end
1385
+ class TUV < Code #:nodoc:
1386
+ self.numeric = %q{798}
1387
+ self.name = %q{Tuvalu}
1388
+ self.alpha2 = %q{TV}
1389
+ self.alpha3 = %q{TUV}
1390
+ end
1391
+ class UGA < Code #:nodoc:
1392
+ self.numeric = %q{800}
1393
+ self.name = %q{Uganda}
1394
+ self.alpha2 = %q{UG}
1395
+ self.alpha3 = %q{UGA}
1396
+ end
1397
+ class UKR < Code #:nodoc:
1398
+ self.numeric = %q{804}
1399
+ self.name = %q{Ukraine}
1400
+ self.alpha2 = %q{UA}
1401
+ self.alpha3 = %q{UKR}
1402
+ end
1403
+ class ARE < Code #:nodoc:
1404
+ self.numeric = %q{784}
1405
+ self.name = %q{United Arab Emirates}
1406
+ self.alpha2 = %q{AE}
1407
+ self.alpha3 = %q{ARE}
1408
+ end
1409
+ class GBR < Code #:nodoc:
1410
+ self.numeric = %q{826}
1411
+ self.name = %q{Britain (UK)}
1412
+ self.alpha2 = %q{GB}
1413
+ self.alpha3 = %q{GBR}
1414
+ end
1415
+ class USA < Code #:nodoc:
1416
+ self.numeric = %q{840}
1417
+ self.name = %q{United States}
1418
+ self.alpha2 = %q{US}
1419
+ self.alpha3 = %q{USA}
1420
+ end
1421
+ class UMI < Code #:nodoc:
1422
+ self.numeric = %q{581}
1423
+ self.name = %q{US minor outlying islands}
1424
+ self.alpha2 = %q{UM}
1425
+ self.alpha3 = %q{UMI}
1426
+ end
1427
+ class URY < Code #:nodoc:
1428
+ self.numeric = %q{858}
1429
+ self.name = %q{Uruguay}
1430
+ self.alpha2 = %q{UY}
1431
+ self.alpha3 = %q{URY}
1432
+ end
1433
+ class UZB < Code #:nodoc:
1434
+ self.numeric = %q{860}
1435
+ self.name = %q{Uzbekistan}
1436
+ self.alpha2 = %q{UZ}
1437
+ self.alpha3 = %q{UZB}
1438
+ end
1439
+ class VUT < Code #:nodoc:
1440
+ self.numeric = %q{548}
1441
+ self.name = %q{Vanuatu}
1442
+ self.alpha2 = %q{VU}
1443
+ self.alpha3 = %q{VUT}
1444
+ end
1445
+ class VEN < Code #:nodoc:
1446
+ self.numeric = %q{862}
1447
+ self.name = %q{Venezuela}
1448
+ self.alpha2 = %q{VE}
1449
+ self.alpha3 = %q{VEN}
1450
+ end
1451
+ class VNM < Code #:nodoc:
1452
+ self.numeric = %q{704}
1453
+ self.name = %q{Vietnam}
1454
+ self.alpha2 = %q{VN}
1455
+ self.alpha3 = %q{VNM}
1456
+ end
1457
+ class VGB < Code #:nodoc:
1458
+ self.numeric = %q{092}
1459
+ self.name = %q{Virgin Islands (UK)}
1460
+ self.alpha2 = %q{VG}
1461
+ self.alpha3 = %q{VGB}
1462
+ end
1463
+ class VIR < Code #:nodoc:
1464
+ self.numeric = %q{850}
1465
+ self.name = %q{Virgin Islands (US)}
1466
+ self.alpha2 = %q{VI}
1467
+ self.alpha3 = %q{VIR}
1468
+ end
1469
+ class WLF < Code #:nodoc:
1470
+ self.numeric = %q{876}
1471
+ self.name = %q{Wallis & Futuna}
1472
+ self.alpha2 = %q{WF}
1473
+ self.alpha3 = %q{WLF}
1474
+ end
1475
+ class ESH < Code #:nodoc:
1476
+ self.numeric = %q{732}
1477
+ self.name = %q{Western Sahara}
1478
+ self.alpha2 = %q{EH}
1479
+ self.alpha3 = %q{ESH}
1480
+ end
1481
+ class YEM < Code #:nodoc:
1482
+ self.numeric = %q{887}
1483
+ self.name = %q{Yemen}
1484
+ self.alpha2 = %q{YE}
1485
+ self.alpha3 = %q{YEM}
1486
+ end
1487
+ class ZMB < Code #:nodoc:
1488
+ self.numeric = %q{894}
1489
+ self.name = %q{Zambia}
1490
+ self.alpha2 = %q{ZM}
1491
+ self.alpha3 = %q{ZMB}
1492
+ end
1493
+ class ZWE < Code #:nodoc:
1494
+ self.numeric = %q{716}
1495
+ self.name = %q{Zimbabwe}
1496
+ self.alpha2 = %q{ZW}
1497
+ self.alpha3 = %q{ZWE}
1498
+ end
1499
+ end # end Code
1500
+ end # CountryCurrency
1501
+