-
Notifications
You must be signed in to change notification settings - Fork 20
/
eshop.rb
30 lines (26 loc) · 979 Bytes
/
eshop.rb
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
require 'active_support/core_ext/array/grouping'
require 'active_support/core_ext/hash/slice'
require 'httparty'
require_relative 'eshop/countries'
require_relative 'eshop/games'
require_relative 'eshop/prices'
module Eshop
# Nintendo split countries this way. So yes, africa and oceania are in europe...
REGIONS = {
asia: %w[AE AZ HK IN JP KR MY SA SG TR TW],
europe: %w[
AD AL AT AU BA BE BG BW CH CY CZ DE DJ DK EE ER ES FI FR GB GG GI GR HR HU IE IM IS IT JE LI
LS LT LU LV MC ME MK ML MR MT MZ NA NE NL NO NZ PL PT RO RS RU SD SE SI SK SM SO SZ TD VA ZA
ZM ZW
],
americas: %w[
AG AI AR AW BB BM BO BR BS BZ CA CL CO CR DM DO EC GD GF GP GT GY HN HT JM KN KY LC MQ MS MX
NI PA PE PY SR SV TC TT US UY VC VE VG VI
],
}.freeze
COUNTRIES = %w[
AT AU BE BG CA CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IT JP LT LU LV MT MX NL NO NZ PL PT RO
RU SE SI SK US ZA
].freeze
FIRST_NSUID = 70_010_000_000_000
end