Module: Hextech::League::Match

Defined in:
lib/hextech/league/match.rb,
lib/hextech/league/match/base.rb,
lib/hextech/league/match/by_puuid.rb,
lib/hextech/league/match/timeline.rb,
lib/hextech/league/match/by_match_id.rb

Defined Under Namespace

Classes: Base, ByMatchId, ByPuuid, Timeline

Class Method Summary collapse

Class Method Details

.by_match_id(match_id:, region: 'EUROPE') ⇒ Object



13
14
15
# File 'lib/hextech/league/match.rb', line 13

def by_match_id(match_id:, region: 'EUROPE')
  Match::ByMatchId.call(match_id: match_id, region: region)
end

.by_puuid(puuid:, region: 'EUROPE') ⇒ Object



17
18
19
# File 'lib/hextech/league/match.rb', line 17

def by_puuid(puuid:, region: 'EUROPE')
  Match::ByPuuid.call(puuid: puuid, region: region)
end

.timeline(match_id:, region: 'EUROPE') ⇒ Object



21
22
23
# File 'lib/hextech/league/match.rb', line 21

def timeline(match_id:, region: 'EUROPE')
  Match::Timeline.call(match_id: match_id, region: region)
end