4 5 6 7 8
# File 'lib/riot-api-ruby/champion.rb', line 4 def self.byID(region, id) uri = Utils.baseURI + '/api/lol/' + region +'/v1.2/champion/' + id + "?api_key=" + Utils.getAPIKey jsonRequest = open(uri).read return JSON.parse(jsonRequest) end