Sha256: 8c6e0207446e4432c13c1872b5bb0727a7ddc009ca766281baae615e6f3c147d
Contents?: true
Size: 749 Bytes
Versions: 4
Compression:
Stored size: 749 Bytes
Contents
module Lol # Bindings for the Match API. # # See: https://developer.riotgames.com/api-methods/#match-v3 class SpectatorRequest < Request # @!visibility private def api_base_path "/lol/spectator/#{self.class.api_version}" end # Get current game information for the given summoner ID. # @param [Integer] summoner_id Summoner ID # @return [DynamicModel] Current game representation def current_game summoner_id: DynamicModel.new perform_request api_url "active-games/by-summoner/#{summoner_id}" end # Get list of featured games. # @return [FeaturedGameList] list of featured games def featured_games FeaturedGameList.new perform_request api_url "featured-games" end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ruby-lol-1.2.0 | lib/lol/spectator_request.rb |
ruby-lol-1.1.2 | lib/lol/spectator_request.rb |
ruby-lol-1.1.1 | lib/lol/spectator_request.rb |
ruby-lol-1.0.0 | lib/lol/spectator_request.rb |