Sha256: 86cf6a600cd29a61f3e2afcd6d76d78fa2e456597b04177fe39439cff6221ee0
Contents?: true
Size: 799 Bytes
Versions: 1
Compression:
Stored size: 799 Bytes
Contents
# frozen_string_literal: true require 'starcall/helpers/region_parser' require 'starcall/api_requests' module Starcall module Endpoints # Methods to check 3rd party codes class ThirdPartyCodeV4 # Get third party code for a given summoner ID def self.check_for_summoner(encrypted_summoner_id:, region:) Starcall::Regions.valid?(region: region) Starcall::ApiRequests.make_request( url: "https://#{parse_region(region: region)}.api.riotgames.com"\ "/lol/platform/v4/third-party-code/by-summoner/#{encrypted_summoner_id}" ) end def self.parse_region(region:) Starcall::Helpers::RegionParser.parse(region: region) end private_class_method :parse_region end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
starcall-0.6.0 | lib/starcall/endpoints/third_party_code_v4.rb |