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

Version Path
ruby-lol-0.12.2 lib/lol/current_game_request.rb
ruby-lol-0.12.1 lib/lol/current_game_request.rb
ruby-lol-0.12.0 lib/lol/current_game_request.rb
ruby-lol-0.11.6 lib/lol/current_game_request.rb
ruby-lol-0.11.5 lib/lol/current_game_request.rb
ruby-lol-0.11.4 lib/lol/current_game_request.rb
ruby-lol-0.11.3 lib/lol/current_game_request.rb
ruby-lol-0.11.2 lib/lol/current_game_request.rb
ruby-lol-0.11.1 lib/lol/current_game_request.rb
ruby-lol-0.11.0 lib/lol/current_game_request.rb