Class: Ryze::Summoner

Inherits:
Object
  • Object
show all
Defined in:
lib/Ryze/objects/summoner.rb

Overview

Summoner is a class corresponding to the SummonerDto Riot API object.

Instance Method Summary collapse

Methods inherited from Object

#initialize

Constructor Details

This class inherits a constructor from Ryze::Object

Instance Method Details

#retrieve_last_matchMatch

Retrieve the last match of the summoner.

Returns:

  • (Match)

    Match object.



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