class Summoner
Public Class Methods
byIDS(region, summonerIDS)
click to toggle source
# File lib/riot-api-ruby/summoner.rb, line 10 def self.byIDS(region, summonerIDS) uri = Utils.baseURI + '/api/lol/' + region + '/v1.4/summoner/' + summonerIDS + "?api_key=" + Utils.getAPIKey jsonRequest = open(uri).read return JSON.parse(jsonRequest) end
byNames(region, summonerNames)
click to toggle source
# File lib/riot-api-ruby/summoner.rb, line 3 def self.byNames(region, summonerNames) uri = Utils.baseURI + '/api/lol/' + region + '/v1.4/summoner/by-name/' + summonerNames + "?api_key=" + Utils.getAPIKey puts uri jsonRequest = open(uri).read return JSON.parse(jsonRequest) end
masteries(region, summonerIDS)
click to toggle source
# File lib/riot-api-ruby/summoner.rb, line 16 def self.masteries(region, summonerIDS) uri = Utils.baseURI + '/api/lol/' + region + '/v1.4/summoner/' + summonerIDS + '/masteries' + "?api_key=" + Utils.getAPIKey jsonRequest = open(uri).read return JSON.parse(jsonRequest) end
names(region, summonerIDS)
click to toggle source
# File lib/riot-api-ruby/summoner.rb, line 22 def self.names(region, summonerIDS) uri = Utils.baseURI + '/api/lol/' + region + '/v1.3/stats/by-summoner/' + summonerIDS + '/name' + "?api_key=" + Utils.getAPIKey jsonRequest = open(uri).read return JSON.parse(jsonRequest) end
runes(region, summonerIDS)
click to toggle source
# File lib/riot-api-ruby/summoner.rb, line 28 def self.runes(region, summonerIDS) uri = Utils.baseURI + '/api/lol/' + region + '/v1.3/stats/by-summoner/' + summonerIDS + '/runes' + "?api_key=" + Utils.getAPIKey jsonRequest = open(uri).read return JSON.parse(jsonRequest) end