Class: Starcall::Endpoints::ChampionV3
- Inherits:
-
Object
- Object
- Starcall::Endpoints::ChampionV3
- Defined in:
- lib/starcall/endpoints/champion_v3.rb
Overview
Methods used to call the Champion endpoints.
Class Method Summary collapse
-
.champion_rotations(region: 'euw') ⇒ Object
Returns champion rotations, including free-to-play and low-level free-to-play rotations.
Class Method Details
.champion_rotations(region: 'euw') ⇒ Object
Returns champion rotations, including free-to-play and low-level free-to-play rotations
11 12 13 14 15 16 17 |
# File 'lib/starcall/endpoints/champion_v3.rb', line 11 def self.champion_rotations(region: 'euw') Starcall::Regions.valid?(region: region) Starcall::ApiRequests.make_request( url: "https://#{parse_region(region: region)}.api.riotgames.com"\ '/lol/platform/v3/champion-rotations' ) end |