File: structure.rb

package info (click to toggle)
ruby-countries 4.2.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 11,196 kB
  • sloc: ruby: 2,085; makefile: 4
file content (72 lines) | stat: -rw-r--r-- 1,687 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# frozen_string_literal: true
#
module ISO3166
  DEFAULT_COUNTRY_HASH = {
    'address_format' => nil,
    'alpha2' => nil,
    'alpha3' => nil,
    'continent' => nil,
    'country_code' => nil,
    'currency_code' => nil,
    'gec' => nil,
    'geo' => {
      'latitude' => nil,
      'longitude' => nil,
      'max_latitude' => nil,
      'max_longitude' => nil,
      'min_latitude' => nil,
      'min_longitude' => nil,
      'bounds' => {
        'northeast' => {
          'lat' => nil,
          'lng' => nil
        },
        'southwest' => {
          'lat' => nil,
          'lng' => nil
        }
      }
    },
    'international_prefix' => nil,
    'ioc' => nil,
    'iso_long_name' => nil,
    'iso_short_name' => nil,
    'national_destination_code_lengths' => [],
    'national_number_lengths' => [],
    'national_prefix' => nil,
    'nanp_prefix' => nil,
    'nationality' => nil,
    'number' => nil,
    'languages_official' => [],
    'languages_spoken' => [],
    'translations' => {},
    'postal_code' => nil,
    'postal_code_format' => nil,
    'region' => nil,
    'unofficial_names' => [],
    'start_of_week' => 'monday',
    'subregion' => nil,
    'un_locode' => nil,
    'vat_rates' => {
      'standard' => nil,
      'reduced' => [nil, nil],
      'super_reduced' => nil,
      'parking' => nil
    },
    'world_region' => nil
  }.freeze

  DEFAULT_SUBDIVISION_HASH = {
    'name' => nil,
    'unofficial_names' => [],
    'translations' => {},
    'geo' => {
      'latitude' => nil,
      'longitude' => nil,
      'max_latitude' => nil,
      'max_longitude' => nil,
      'min_latitude' => nil,
      'min_longitude' => nil
    }
  }.freeze
end