class Starcall::Endpoints::StatusV3
Method to check the status of services in a region
Public Class Methods
status_data(region: 'euw')
click to toggle source
Get League of Legends status for the given shard
# File lib/starcall/endpoints/status_v3.rb, line 11 def self.status_data(region: 'euw') Starcall::Regions.valid?(region: region) Starcall::ApiRequests.make_request( url: "https://#{parse_region(region: region)}.api.riotgames.com"\ '/lol/status/v3/shard-data' ) end
Private Class Methods
parse_region(region:)
click to toggle source
# File lib/starcall/endpoints/status_v3.rb, line 19 def self.parse_region(region:) Starcall::Helpers::RegionParser.parse(region: region) end