Class: Eddy::Elements::E26

Inherits:
Models::Element::ID show all
Defined in:
lib/definitions/elements/generated/26.country_code.rb

Overview

Element Summary:

  • Id: 26
  • Name: Country Code
  • Type: ID
  • Min/Max: 2/3
  • Description: Code identifying the country

Instance Attribute Summary

Attributes inherited from Models::Element::Base

#description, #id, #max, #min, #name, #ref, #type

Instance Method Summary collapse

Methods inherited from Models::Element::ID

#process_value, process_value, #value, #value=

Methods inherited from Models::Element::Base

#doc_comment, #process_value, process_value, #req, #req=, #value, #value=

Constructor Details

#initialize(val: nil, req: nil, ref: nil) ⇒ void

Parameters:

  • val (String) (defaults to: nil)
  • req (String) (defaults to: nil)
  • ref (String) (defaults to: nil)


16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/definitions/elements/generated/26.country_code.rb', line 16

def initialize(val: nil, req: nil, ref: nil)
  @id = "26"
  @name = "Country Code"
  @description = "Code identifying the country"
  super(
    min: 2,
    max: 3,
    req: req,
    ref: ref,
    val: val,
  )
end

Instance Method Details

#code_listArray<String>

Returns:

  • (Array<String>)


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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
# File 'lib/definitions/elements/generated/26.country_code.rb', line 30

def code_list()
  return [
    "AF", # Afghanistan
    "AFG", # Afghanistan
    "AX", # Åland Islands
    "ALA", # Åland Islands
    "AL", # Albania
    "ALB", # Albania
    "DZ", # Algeria
    "DZA", # Algeria
    "AS", # American Samoa
    "ASM", # American Samoa
    "AD", # Andorra
    "AND", # Andorra
    "AO", # Angola
    "AGO", # Angola
    "AI", # Anguilla
    "AIA", # Anguilla
    "AQ", # Antarctica
    "ATA", # Antarctica
    "AG", # Antigua and Barbuda
    "ATG", # Antigua and Barbuda
    "AR", # Argentina
    "ARG", # Argentina
    "AM", # Armenia
    "ARM", # Armenia
    "AW", # Aruba
    "ABW", # Aruba
    "AU", # Australia
    "AUS", # Australia
    "AT", # Austria
    "AUT", # Austria
    "AZ", # Azerbaijan
    "AZE", # Azerbaijan
    "BS", # Bahamas
    "BHS", # Bahamas
    "BH", # Bahrain
    "BHR", # Bahrain
    "BD", # Bangladesh
    "BGD", # Bangladesh
    "BB", # Barbados
    "BRB", # Barbados
    "BY", # Belarus
    "BLR", # Belarus
    "BE", # Belgium
    "BEL", # Belgium
    "BZ", # Belize
    "BLZ", # Belize
    "BJ", # Benin
    "BEN", # Benin
    "BM", # Bermuda
    "BMU", # Bermuda
    "BT", # Bhutan
    "BTN", # Bhutan
    "BO", # Bolivia (Plurinational State of)
    "BOL", # Bolivia (Plurinational State of)
    "BQ", # Bonaire, Sint Eustatius and Saba
    "BES", # Bonaire, Sint Eustatius and Saba
    "BA", # Bosnia and Herzegovina
    "BIH", # Bosnia and Herzegovina
    "BW", # Botswana
    "BWA", # Botswana
    "BV", # Bouvet Island
    "BVT", # Bouvet Island
    "BR", # Brazil
    "BRA", # Brazil
    "IO", # British Indian Ocean Territory
    "IOT", # British Indian Ocean Territory
    "BN", # Brunei Darussalam
    "BRN", # Brunei Darussalam
    "BG", # Bulgaria
    "BGR", # Bulgaria
    "BF", # Burkina Faso
    "BFA", # Burkina Faso
    "BI", # Burundi
    "BDI", # Burundi
    "CV", # Cabo Verde
    "CPV", # Cabo Verde
    "KH", # Cambodia
    "KHM", # Cambodia
    "CM", # Cameroon
    "CMR", # Cameroon
    "CA", # Canada
    "CAN", # Canada
    "KY", # Cayman Islands
    "CYM", # Cayman Islands
    "CF", # Central African Republic
    "CAF", # Central African Republic
    "TD", # Chad
    "TCD", # Chad
    "CL", # Chile
    "CHL", # Chile
    "CN", # China
    "CHN", # China
    "CX", # Christmas Island
    "CXR", # Christmas Island
    "CC", # Cocos (Keeling) Islands
    "CCK", # Cocos (Keeling) Islands
    "CO", # Colombia
    "COL", # Colombia
    "KM", # Comoros
    "COM", # Comoros
    "CG", # Congo
    "COG", # Congo
    "CD", # Congo, Democratic Republic of the
    "COD", # Congo, Democratic Republic of the
    "CK", # Cook Islands
    "COK", # Cook Islands
    "CR", # Costa Rica
    "CRI", # Costa Rica
    "CI", # Côte d'Ivoire
    "CIV", # Côte d'Ivoire
    "HR", # Croatia
    "HRV", # Croatia
    "CU", # Cuba
    "CUB", # Cuba
    "CW", # Curaçao
    "CUW", # Curaçao
    "CY", # Cyprus
    "CYP", # Cyprus
    "CZ", # Czechia
    "CZE", # Czechia
    "DK", # Denmark
    "DNK", # Denmark
    "DJ", # Djibouti
    "DJI", # Djibouti
    "DM", # Dominica
    "DMA", # Dominica
    "DO", # Dominican Republic
    "DOM", # Dominican Republic
    "EC", # Ecuador
    "ECU", # Ecuador
    "EG", # Egypt
    "EGY", # Egypt
    "SV", # El Salvador
    "SLV", # El Salvador
    "GQ", # Equatorial Guinea
    "GNQ", # Equatorial Guinea
    "ER", # Eritrea
    "ERI", # Eritrea
    "EE", # Estonia
    "EST", # Estonia
    "SZ", # Eswatini
    "SWZ", # Eswatini
    "ET", # Ethiopia
    "ETH", # Ethiopia
    "FK", # Falkland Islands (Malvinas)
    "FLK", # Falkland Islands (Malvinas)
    "FO", # Faroe Islands
    "FRO", # Faroe Islands
    "FJ", # Fiji
    "FJI", # Fiji
    "FI", # Finland
    "FIN", # Finland
    "FR", # France
    "FRA", # France
    "GF", # French Guiana
    "GUF", # French Guiana
    "PF", # French Polynesia
    "PYF", # French Polynesia
    "TF", # French Southern Territories
    "ATF", # French Southern Territories
    "GA", # Gabon
    "GAB", # Gabon
    "GM", # Gambia
    "GMB", # Gambia
    "GE", # Georgia
    "GEO", # Georgia
    "DE", # Germany
    "DEU", # Germany
    "GH", # Ghana
    "GHA", # Ghana
    "GI", # Gibraltar
    "GIB", # Gibraltar
    "GR", # Greece
    "GRC", # Greece
    "GL", # Greenland
    "GRL", # Greenland
    "GD", # Grenada
    "GRD", # Grenada
    "GP", # Guadeloupe
    "GLP", # Guadeloupe
    "GU", # Guam
    "GUM", # Guam
    "GT", # Guatemala
    "GTM", # Guatemala
    "GG", # Guernsey
    "GGY", # Guernsey
    "GN", # Guinea
    "GIN", # Guinea
    "GW", # Guinea-Bissau
    "GNB", # Guinea-Bissau
    "GY", # Guyana
    "GUY", # Guyana
    "HT", # Haiti
    "HTI", # Haiti
    "HM", # Heard Island and McDonald Islands
    "HMD", # Heard Island and McDonald Islands
    "VA", # Holy See
    "VAT", # Holy See
    "HN", # Honduras
    "HND", # Honduras
    "HK", # Hong Kong
    "HKG", # Hong Kong
    "HU", # Hungary
    "HUN", # Hungary
    "IS", # Iceland
    "ISL", # Iceland
    "IN", # India
    "IND", # India
    "ID", # Indonesia
    "IDN", # Indonesia
    "IR", # Iran (Islamic Republic of)
    "IRN", # Iran (Islamic Republic of)
    "IQ", # Iraq
    "IRQ", # Iraq
    "IE", # Ireland
    "IRL", # Ireland
    "IM", # Isle of Man
    "IMN", # Isle of Man
    "IL", # Israel
    "ISR", # Israel
    "IT", # Italy
    "ITA", # Italy
    "JM", # Jamaica
    "JAM", # Jamaica
    "JP", # Japan
    "JPN", # Japan
    "JE", # Jersey
    "JEY", # Jersey
    "JO", # Jordan
    "JOR", # Jordan
    "KZ", # Kazakhstan
    "KAZ", # Kazakhstan
    "KE", # Kenya
    "KEN", # Kenya
    "KI", # Kiribati
    "KIR", # Kiribati
    "KP", # Korea (Democratic People's Republic of)
    "PRK", # Korea (Democratic People's Republic of)
    "KR", # Korea, Republic of
    "KOR", # Korea, Republic of
    "KW", # Kuwait
    "KWT", # Kuwait
    "KG", # Kyrgyzstan
    "KGZ", # Kyrgyzstan
    "LA", # Lao People's Democratic Republic
    "LAO", # Lao People's Democratic Republic
    "LV", # Latvia
    "LVA", # Latvia
    "LB", # Lebanon
    "LBN", # Lebanon
    "LS", # Lesotho
    "LSO", # Lesotho
    "LR", # Liberia
    "LBR", # Liberia
    "LY", # Libya
    "LBY", # Libya
    "LI", # Liechtenstein
    "LIE", # Liechtenstein
    "LT", # Lithuania
    "LTU", # Lithuania
    "LU", # Luxembourg
    "LUX", # Luxembourg
    "MO", # Macao
    "MAC", # Macao
    "MG", # Madagascar
    "MDG", # Madagascar
    "MW", # Malawi
    "MWI", # Malawi
    "MY", # Malaysia
    "MYS", # Malaysia
    "MV", # Maldives
    "MDV", # Maldives
    "ML", # Mali
    "MLI", # Mali
    "MT", # Malta
    "MLT", # Malta
    "MH", # Marshall Islands
    "MHL", # Marshall Islands
    "MQ", # Martinique
    "MTQ", # Martinique
    "MR", # Mauritania
    "MRT", # Mauritania
    "MU", # Mauritius
    "MUS", # Mauritius
    "YT", # Mayotte
    "MYT", # Mayotte
    "MX", # Mexico
    "MEX", # Mexico
    "FM", # Micronesia (Federated States of)
    "FSM", # Micronesia (Federated States of)
    "MD", # Moldova, Republic of
    "MDA", # Moldova, Republic of
    "MC", # Monaco
    "MCO", # Monaco
    "MN", # Mongolia
    "MNG", # Mongolia
    "ME", # Montenegro
    "MNE", # Montenegro
    "MS", # Montserrat
    "MSR", # Montserrat
    "MA", # Morocco
    "MAR", # Morocco
    "MZ", # Mozambique
    "MOZ", # Mozambique
    "MM", # Myanmar
    "MMR", # Myanmar
    "NA", # Namibia
    "NAM", # Namibia
    "NR", # Nauru
    "NRU", # Nauru
    "NP", # Nepal
    "NPL", # Nepal
    "NL", # Netherlands
    "NLD", # Netherlands
    "NC", # New Caledonia
    "NCL", # New Caledonia
    "NZ", # New Zealand
    "NZL", # New Zealand
    "NI", # Nicaragua
    "NIC", # Nicaragua
    "NE", # Niger
    "NER", # Niger
    "NG", # Nigeria
    "NGA", # Nigeria
    "NU", # Niue
    "NIU", # Niue
    "NF", # Norfolk Island
    "NFK", # Norfolk Island
    "MK", # North Macedonia
    "MKD", # North Macedonia
    "MP", # Northern Mariana Islands
    "MNP", # Northern Mariana Islands
    "NO", # Norway
    "NOR", # Norway
    "OM", # Oman
    "OMN", # Oman
    "PK", # Pakistan
    "PAK", # Pakistan
    "PW", # Palau
    "PLW", # Palau
    "PS", # Palestine, State of
    "PSE", # Palestine, State of
    "PA", # Panama
    "PAN", # Panama
    "PG", # Papua New Guinea
    "PNG", # Papua New Guinea
    "PY", # Paraguay
    "PRY", # Paraguay
    "PE", # Peru
    "PER", # Peru
    "PH", # Philippines
    "PHL", # Philippines
    "PN", # Pitcairn
    "PCN", # Pitcairn
    "PL", # Poland
    "POL", # Poland
    "PT", # Portugal
    "PRT", # Portugal
    "PR", # Puerto Rico
    "PRI", # Puerto Rico
    "QA", # Qatar
    "QAT", # Qatar
    "RE", # Réunion
    "REU", # Réunion
    "RO", # Romania
    "ROU", # Romania
    "RU", # Russian Federation
    "RUS", # Russian Federation
    "RW", # Rwanda
    "RWA", # Rwanda
    "BL", # Saint Barthélemy
    "BLM", # Saint Barthélemy
    "SH", # Saint Helena, Ascension and Tristan da Cunha
    "SHN", # Saint Helena, Ascension and Tristan da Cunha
    "KN", # Saint Kitts and Nevis
    "KNA", # Saint Kitts and Nevis
    "LC", # Saint Lucia
    "LCA", # Saint Lucia
    "MF", # Saint Martin (French part)
    "MAF", # Saint Martin (French part)
    "PM", # Saint Pierre and Miquelon
    "SPM", # Saint Pierre and Miquelon
    "VC", # Saint Vincent and the Grenadines
    "VCT", # Saint Vincent and the Grenadines
    "WS", # Samoa
    "WSM", # Samoa
    "SM", # San Marino
    "SMR", # San Marino
    "ST", # Sao Tome and Principe
    "STP", # Sao Tome and Principe
    "SA", # Saudi Arabia
    "SAU", # Saudi Arabia
    "SN", # Senegal
    "SEN", # Senegal
    "RS", # Serbia
    "SRB", # Serbia
    "SC", # Seychelles
    "SYC", # Seychelles
    "SL", # Sierra Leone
    "SLE", # Sierra Leone
    "SG", # Singapore
    "SGP", # Singapore
    "SX", # Sint Maarten (Dutch part)
    "SXM", # Sint Maarten (Dutch part)
    "SK", # Slovakia
    "SVK", # Slovakia
    "SI", # Slovenia
    "SVN", # Slovenia
    "SB", # Solomon Islands
    "SLB", # Solomon Islands
    "SO", # Somalia
    "SOM", # Somalia
    "ZA", # South Africa
    "ZAF", # South Africa
    "GS", # South Georgia and the South Sandwich Islands
    "SGS", # South Georgia and the South Sandwich Islands
    "SS", # South Sudan
    "SSD", # South Sudan
    "ES", # Spain
    "ESP", # Spain
    "LK", # Sri Lanka
    "LKA", # Sri Lanka
    "SD", # Sudan
    "SDN", # Sudan
    "SR", # Suriname
    "SUR", # Suriname
    "SJ", # Svalbard and Jan Mayen
    "SJM", # Svalbard and Jan Mayen
    "SE", # Sweden
    "SWE", # Sweden
    "CH", # Switzerland
    "CHE", # Switzerland
    "SY", # Syrian Arab Republic
    "SYR", # Syrian Arab Republic
    "TW", # Taiwan
    "TWN", # Taiwan
    "TJ", # Tajikistan
    "TJK", # Tajikistan
    "TZ", # Tanzania, United Republic of
    "TZA", # Tanzania, United Republic of
    "TH", # Thailand
    "THA", # Thailand
    "TL", # Timor-Leste
    "TLS", # Timor-Leste
    "TG", # Togo
    "TGO", # Togo
    "TK", # Tokelau
    "TKL", # Tokelau
    "TO", # Tonga
    "TON", # Tonga
    "TT", # Trinidad and Tobago
    "TTO", # Trinidad and Tobago
    "TN", # Tunisia
    "TUN", # Tunisia
    "TR", # Turkey
    "TUR", # Turkey
    "TM", # Turkmenistan
    "TKM", # Turkmenistan
    "TC", # Turks and Caicos Islands
    "TCA", # Turks and Caicos Islands
    "TV", # Tuvalu
    "TUV", # Tuvalu
    "UG", # Uganda
    "UGA", # Uganda
    "UA", # Ukraine
    "UKR", # Ukraine
    "AE", # United Arab Emirates
    "ARE", # United Arab Emirates
    "GB", # United Kingdom of Great Britain and Northern Ireland
    "GBR", # United Kingdom of Great Britain and Northern Ireland
    "UM", # United States Minor Outlying Islands
    "UMI", # United States Minor Outlying Islands
    "US", # United States of America
    "USA", # United States of America
    "UY", # Uruguay
    "URY", # Uruguay
    "UZ", # Uzbekistan
    "UZB", # Uzbekistan
    "VU", # Vanuatu
    "VUT", # Vanuatu
    "VE", # Venezuela (Bolivarian Republic of)
    "VEN", # Venezuela (Bolivarian Republic of)
    "VN", # Viet Nam
    "VNM", # Viet Nam
    "VG", # Virgin Islands (British)
    "VGB", # Virgin Islands (British)
    "VI", # Virgin Islands (U.S.)
    "VIR", # Virgin Islands (U.S.)
    "WF", # Wallis and Futuna
    "WLF", # Wallis and Futuna
    "EH", # Western Sahara
    "ESH", # Western Sahara
    "YE", # Yemen
    "YEM", # Yemen
    "ZM", # Zambia
    "ZMB", # Zambia
    "ZW", # Zimbabwe
    "ZWE", # Zimbabwe
  ]
end