added specs for champion module
This commit is contained in:
@@ -13,7 +13,7 @@ class ChampionModule < SightstoneBaseModule
|
||||
# @return [Array<Champion>] array of champs
|
||||
def champions(optional={})
|
||||
region = optional[:region] || @sightstone.region
|
||||
free_to_play = optional[:free_to_play]
|
||||
free_to_play = optional[:free_to_play] || false
|
||||
uri = "https://prod.api.pvp.net/api/lol/#{region}/v1.1/champion"
|
||||
response = _get_api_response(uri, {'freeToPlay' => free_to_play})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user