Class: Lol::MatchRequest
Instance Attribute Summary
Attributes inherited from Request
#api_key, #cache_store, #region
Class Method Summary collapse
-
.api_version ⇒ String
Returns the supported API Version.
Instance Method Summary collapse
-
#get(match_id) ⇒ Hash
Returns a match with the given id.
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_version ⇒ String
Returns the supported API Version
5 6 7 |
# File 'lib/lol/match_request.rb', line 5 def self.api_version "v2.2" end |
Instance Method Details
#get(match_id) ⇒ Hash
Returns a match with the given id
12 13 14 |
# File 'lib/lol/match_request.rb', line 12 def get match_id perform_request(api_url("match/#{match_id}")) end |