Class: League
- Inherits:
-
Object
show all
- Defined in:
- lib/riot-api-ruby/league.rb
Defined Under Namespace
Classes: BySummoner, ByTeam
Class Method Summary
collapse
Class Method Details
.challenger(region) ⇒ Object
34
35
36
37
38
|
# File 'lib/riot-api-ruby/league.rb', line 34
def self.challenger(region)
uri = Utils.baseURI + '/api/lol/' + region +'/v2.4/league/challenger/' + "?api_key=" + Utils.getAPIKey
jsonRequest = open(uri).read
return JSON.parse(jsonRequest)
end
|