class Lol::SpectatorRequest
Bindings for the Match API.
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
featured_games()
click to toggle source
Get list of featured games. @return [FeaturedGameList] list of featured games
# File lib/lol/spectator_request.rb, line 20 def featured_games FeaturedGameList.new perform_request api_url "featured-games" end