game module

This commit is contained in:
danijoo
2013-12-13 10:08:36 +01:00
parent c5ae552fe8
commit f4bea4fe9f
7 changed files with 137 additions and 21 deletions

View File

@@ -6,7 +6,7 @@ class ChampionModule
@sightstone = sightstone
end
def get_champions(free_to_play=false)
def champions(free_to_play=false)
uri = "https://prod.api.pvp.net/api/lol/#{@sightstone.region}/v1.1/champion"
response = _get_api_response(uri, {'freeToPlay' => free_to_play})
puts response