module Taric::Operation::Match
Constants
- MATCHLIST_RECENT_V3
- MATCHLIST_V3
- MATCH_TIMELINE_V3
- MATCH_V3
Public Instance Methods
Match
data for id.
@see developer.riotgames.com/api-methods/#match-v3/GET_getMatch @param match_id [Fixnum] id of match @return match data for id.
# File lib/taric/operation/match.rb, line 19 def match(match_id: ) response_for MATCH_V3, {matchId: match_id} end
Match
timeline data
@see developer.riotgames.com/api-methods/#match-v3/GET_getMatchTimeline @param match_id [Fixnum] id of match @return [Response] match timeline
# File lib/taric/operation/match.rb, line 71 def match_timeline(match_id: ) response_for MATCH_TIMELINE_V3, {matchId: match_id} end
Matchlist data
@see developer.riotgames.com/api-methods/#match-v3/GET_getMatchlist @param account_id [Fixnum] player's account ID @param champion [Fixnum, Array<Fixnum>] Optional - Set of champion IDs for which to filtering matchlist. @param queue [Fixnum, Array<Fixnum>] Optional - Set of queue IDs for which to filtering matchlist. @param season [Fixnum, Array<Fixnum>] Optional - Set of season IDs for which to filtering matchlist. @param begin_time [Fixnum] Optional - The begin time to use for filtering matchlist specified as epoch milliseconds. @param end_time [Fixnum] Optional - The end time to use for filtering matchlist specified as epoch milliseconds. @param begin_index [Fixnum] Optional - The begin index to use for filtering matchlist. @param end_index [Fixnum] Optional - The end index to use for filtering matchlist. @return [Response] list of match data
@example filtering on single season and single champion
client.matchlist(account_id: 47910, season: 7, champion: 113).body
@example filtering on multiple seasons and champions
client.matchlist(account_id: 47910, season: [6,7,8], champion: [16,37]).body
# File lib/taric/operation/match.rb, line 41 def matchlist(account_id:, begin_time: nil, end_index: nil, season: nil, champion: nil, begin_index: nil, queue: nil, end_time: nil) response_for( MATCHLIST_V3, { accountId: account_id, beginTime: epoch_milliseconds(begin_time), endIndex: end_index, season: season, champion: champion, beginIndex: begin_index, queue: queue, endTime: epoch_milliseconds(end_time) } ) end
Matchlist data for the past 20 matches
@see developer.riotgames.com/api-methods/#match-v3/GET_getRecentMatchlist @param account_id [Fixnum] player's account ID @return [Response] list of last 20 matches
# File lib/taric/operation/match.rb, line 62 def matchlist_recent(account_id: ) response_for MATCHLIST_RECENT_V3, {accountId: account_id} end