Class: Lol::MatchHistoryRequest

Inherits:
Request
  • Object
show all
Defined in:
lib/lol/match_history_request.rb

Instance Attribute Summary

Attributes inherited from Request

#api_key, #cache_store, #region

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Request

#api_base_url, #api_query_string, #api_url, #cached?, #clean_url, #initialize, #perform_request, #post_api_url, #store, #ttl

Constructor Details

This class inherits a constructor from Lol::Request

Class Method Details

.api_versionString

Returns the supported API Version

Returns:

  • (String)

    the supported api version



5
6
7
# File 'lib/lol/match_history_request.rb', line 5

def self.api_version
  "v2.2"
end

Instance Method Details

#get(summoner_id) ⇒ Object

Returns match history for a summoner

Returns:



11
12
13
# File 'lib/lol/match_history_request.rb', line 11

def get summoner_id
  perform_request(api_url("matchhistory/#{summoner_id}"))
end