Sha256: ee90467931d28b89cc6addc3195a342a30627da64d22bddec54073f91c7dcacf

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.1", 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.0.7 lib/lol/game_request.rb