class Lol::SpectatorRequest

Bindings for the Match API.

See: developer.riotgames.com/api-methods/#match-v3

Public Instance Methods

api_base_path() click to toggle source

@!visibility private

# File lib/lol/spectator_request.rb, line 7
def api_base_path
  "/lol/spectator/#{self.class.api_version}"
end
current_game(summoner_id: DynamicModel.new perform_request api_url "active-games/by-summoner/ click to toggle source

Get current game information for the given summoner ID. @param [Integer] summoner_id Summoner ID @return [DynamicModel] Current game representation

# File lib/lol/spectator_request.rb, line 14
def current_game summoner_id:
  DynamicModel.new perform_request api_url "active-games/by-summoner/#{summoner_id}"
end