Class: Ryze::Summoner
- Defined in:
- lib/Ryze/objects/summoner.rb
Overview
Summoner is a class corresponding to the SummonerDto Riot API object.
Instance Method Summary collapse
-
#retrieve_last_match ⇒ Match
Retrieve the last match of the summoner.
Methods inherited from Object
Constructor Details
This class inherits a constructor from Ryze::Object
Instance Method Details
#retrieve_last_match ⇒ Match
Retrieve the last match of the summoner.
9 10 11 12 |
# File 'lib/Ryze/objects/summoner.rb', line 9 def retrieve_last_match match_id = MatchResource.new(@client).retrieve_match_list_by_puuid(puuid: puuid, count: 1).first MatchResource.new(@client).retrieve_match(match_id: match_id) end |