Sha256: e11be7736639284e4b8e34120eb5e557edf7e46582126fda649aa75f9413a581

Contents?: true

Size: 364 Bytes

Versions: 1

Compression:

Stored size: 364 Bytes

Contents

module Lolxin
  module Region
    REGIONS = {
      ru:   'ru',
      kr:   'kr',
      br1:  'br1',
      oc1:  'oc1',
      jp1:  'jp1',
      na1:  'na1',
      eun1: 'eun1',
      euw1: 'euw1',
      tr1:  'tr1',
      la1:  'la1',
      la2:  'la2'
    }

    def self.valid?(region)
      REGIONS[region] || REGIONS.values.include?(region)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lolxin-0.13.0 lib/lolxin/helpers/region.rb