Sha256: e14f6290080168b8ceaf9d97dc7876b92c42cb715f702e58bf1679cfbb5f0e04

Contents?: true

Size: 424 Bytes

Versions: 1

Compression:

Stored size: 424 Bytes

Contents

module Lol
  class GameRequest < Request
    # Returns a list of the recent games played by a summoner
    # @param summoner_id [Fixnum] Summoner id
    # @return [Array] an array of games
    def recent summoner_id
      summoner_api_path = "game/by-summoner/#{summoner_id}/recent"
      perform_request(api_url("v1.2", summoner_api_path))["games"].map do |game_data|
        Game.new game_data
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby-lol-0.9.1 lib/lol/game_request.rb