Sha256: 49c0118423cab355fe4829de5148e2d71af656a4f81b1c16e2b157b7e295611e

Contents?: true

Size: 323 Bytes

Versions: 1

Compression:

Stored size: 323 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}'

      def current_game(summoner_id:)
        response_for GAME_INFO, summonerId: summoner_id
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
taric-0.1.1 lib/taric/operation/current_game.rb