-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* MATCH-V3 * timeline endpoint for match-v3 * SPECTATOR-V3
- Loading branch information
Showing
12 changed files
with
811 additions
and
1,185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
require_relative 'endpoint_template' | ||
module Taric | ||
module Operation | ||
module Spectator | ||
CURRENT_GAME_V3 = EndpointTemplate.new(template_url: 'https://{host}/lol/spectator/v3/active-games/by-summoner/{summonerId}{?api_key}') | ||
FEATURED_GAMES_V3 = EndpointTemplate.new(template_url: 'https://{host}/lol/spectator/v3/featured-games{?api_key}') | ||
|
||
# Returns current game data for summoner id. | ||
# | ||
# @see https://developer.riotgames.com/api-methods/#spectator-v3/GET_getCurrentGameInfoBySummoner | ||
# @param summoner_id [Fixnum] ID of summoner | ||
# @return [Response] current game | ||
def current_game(summoner_id: ) | ||
response_for CURRENT_GAME_V3, {summonerId: summoner_id} | ||
end | ||
|
||
# | ||
# @see https://developer.riotgames.com/api-methods/#spectator-v3/GET_getFeaturedGames | ||
def featured_games | ||
response_for FEATURED_GAMES_V3 | ||
end | ||
end | ||
end | ||
end |
Oops, something went wrong.