Class: Game::RecentGames
- Inherits:
-
Object
- Object
- Game::RecentGames
- Defined in:
- lib/riot-api-ruby/game.rb
Class Method Summary collapse
Class Method Details
.bySummonerID(region, summonerID) ⇒ Object
5 6 7 8 9 |
# File 'lib/riot-api-ruby/game.rb', line 5 def self.bySummonerID(region, summonerID) uri = Utils.baseURI + '/api/lol/' + region +'/v1.3/game/by-summoner/' + summonerID + '/recent' + "?api_key=" + Utils.getAPIKey jsonRequest = open(uri).read return JSON.parse(jsonRequest) end |