Sha256: 632ad78cc3a347f1bd5fc45364f9a12ec0bac176634ace22625f51b7c5c521f9
Contents?: true
Size: 413 Bytes
Versions: 10
Compression:
Stored size: 413 Bytes
Contents
module Lol class CurrentGameRequest < Request def self.api_version 'v1.0' end def api_url path, params = {} "#{api_base_url}/observer-mode/rest/consumer/#{path}?#{api_query_string params}" end def spectator_game_info platform_id, summoner_id url = api_url "getSpectatorGameInfo/#{platform_id}/#{summoner_id}" DynamicModel.new perform_request(url) end end end
Version data entries
10 entries across 10 versions & 1 rubygems