Sha256: ebb1cbac1e5c3c7b09313b6cc6d24f2f6f52f2d13e0614404c9cbd8ff2b1eb09

Contents?: true

Size: 653 Bytes

Versions: 20

Compression:

Stored size: 653 Bytes

Contents

module Taric
  module Operation
    module CurrentGame
      GAME_INFO = Addressable::Template.new 'https://{host}/observer-mode/rest/consumer/getSpectatorGameInfo/{platform_id}/{summonerId}{?api_key}'

      # Returns current game data for summoner id.
      #
      # @see https://developer.riotgames.com/api/methods#!/956/3287
      # @param summoner_id [Fixnum] required, id of summoner
      # @return [Hash] of game data for summoner id
      #
      # @example
      #   current_game = client.current_game(summoner_id: 21066)
      def current_game(summoner_id:)
        response_for GAME_INFO, summonerId: summoner_id
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
taric-0.4.0 lib/taric/operation/current_game.rb
taric-0.3.4 lib/taric/operation/current_game.rb
taric-0.3.3 lib/taric/operation/current_game.rb
taric-0.3.1 lib/taric/operation/current_game.rb
taric-0.3.0 lib/taric/operation/current_game.rb
taric-0.2.4 lib/taric/operation/current_game.rb
taric-0.2.2 lib/taric/operation/current_game.rb
taric-0.2.1 lib/taric/operation/current_game.rb
taric-0.2.0 lib/taric/operation/current_game.rb
taric-0.1.14 lib/taric/operation/current_game.rb
taric-0.1.13 lib/taric/operation/current_game.rb
taric-0.1.12 lib/taric/operation/current_game.rb
taric-0.1.11 lib/taric/operation/current_game.rb
taric-0.1.10 lib/taric/operation/current_game.rb
taric-0.1.9 lib/taric/operation/current_game.rb
taric-0.1.8 lib/taric/operation/current_game.rb
taric-0.1.7 lib/taric/operation/current_game.rb
taric-0.1.6 lib/taric/operation/current_game.rb
taric-0.1.5 lib/taric/operation/current_game.rb
taric-0.1.4 lib/taric/operation/current_game.rb