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

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