class RiotLolApi::Support::Region
Attributes
platform[RW]
region[RW]
Public Class Methods
new(region)
click to toggle source
# File lib/riot_lol_api/supports/regions.rb, line 5 def initialize(region) @region = region @platform = find_platform end
Public Instance Methods
find_platform()
click to toggle source
# File lib/riot_lol_api/supports/regions.rb, line 10 def find_platform list[@region.to_sym] end
Private Instance Methods
list()
click to toggle source
# File lib/riot_lol_api/supports/regions.rb, line 16 def list { br: 'BR1', eune: 'EUNE1', euw: 'EUW1', kr: 'KR', lan: 'LA1', las: 'LA2', na: 'NA1', oce: 'OC', ru: 'RU', tr: 'TR1' } end