Sha256: 0b1b5afeed346bee72111eea5348341c3b1f0f1ea046b52580a0c8f994624d61
Contents?: true
Size: 552 Bytes
Versions: 19
Compression:
Stored size: 552 Bytes
Contents
module Lol class GameRequest < Request # Returns the supported API Version # @return [String] the supported api version def self.api_version "v1.3" end # 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(summoner_api_path))["games"].map do |game_data| Game.new game_data end end end end
Version data entries
19 entries across 19 versions & 1 rubygems