class Starcall::Endpoints::ChampionV3
Methods used to call the Champion endpoints.
Public Class Methods
champion_rotations(region: 'euw')
click to toggle source
Returns champion rotations, including free-to-play and low-level free-to-play rotations
# 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
Private Class Methods
parse_region(region:)
click to toggle source
# File lib/starcall/endpoints/champion_v3.rb, line 19 def self.parse_region(region:) Starcall::Helpers::RegionParser.parse(region: region) end