Sha256: 555c622431add923e0f9a670357d7f67c8507e2e25c11bfd783de1a88d8124ca
Contents?: true
Size: 729 Bytes
Versions: 20
Compression:
Stored size: 729 Bytes
Contents
require_relative 'base' module Taric module Operation module Game include Taric::Operation::Base GAME_VERSION = 'v1.3'.freeze RECENT = Addressable::Template.new "#{BASE_URL_FN.(GAME_VERSION)}/game/by-summoner/{summonerId}/recent{?api_key}" # Returns recent game data for summoner id. # # @see https://developer.riotgames.com/api/methods#!/959/3291 # @param summoner_id [Fixnum] required, id of summoner # @return [Hash] of recent game data for summoner id # # @example # recent_games = client.recent_game(summoner_id: 21066)['games'] def recent_games(summoner_id:) response_for RECENT, {summonerId: summoner_id} end end end end
Version data entries
20 entries across 20 versions & 1 rubygems