taric 1.0.0.pre.alpha.6 → 1.0.0.pre.alpha.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4eef666e527bbd7f7ee31609391736be3da2fe9e
4
- data.tar.gz: 574f397f268905572470a603f094d805d66bc5cc
3
+ metadata.gz: ffd37d010ecf164b3839c7a6fa33ec7d0f6f3be6
4
+ data.tar.gz: 2bc40a4a441fbe522b3333dd3c195b69be6ec2ec
5
5
  SHA512:
6
- metadata.gz: 933bf43a54800e704bcef682e66048eca23fa5038acdc8244782023b3649ee28dd6995c3e7280e4c49b71afa1e0dc87e8e69eb900b3e2e0258600447224c0130
7
- data.tar.gz: c3cd15b1bf70cb2072e3174a043808e4b34f34c2d6a8a4c6c0872681000e293fe191881b41147702db37d4b43cf778d7ef7916929f78aec69a1f582570cf5aad
6
+ metadata.gz: 9f6e445721655023a322186208c87ef6f1c24330e2041c4f0b63d471dd1fde686be4cb0d5d720e0f38435d2f353059028562b18763bf22d4065f1f8022040cc1
7
+ data.tar.gz: d7d215133cfb540093aae3f795ce1e1f4fd1e7d12bc21289caca528cef60dfc3ec6d82d9218a0e6bccd08ac467541332ec052fe87b9ea15d619437cd04131445
data/README.md CHANGED
@@ -45,8 +45,8 @@ Or install it yourself as:
45
45
  - [x] MASTERIES-V3
46
46
  - [x] MATCH-V3
47
47
  - [x] RUNES-V3
48
- - [ ] SPECTATOR-V3
49
- - [ ] STATIC-DATA-V3
48
+ - [x] SPECTATOR-V3
49
+ - [x] STATIC-DATA-V3
50
50
  - [x] SUMMONER-V3
51
51
  - [x] ~~CURRENT-GAME-V1.0~~ replaced by SPECTATOR-V3
52
52
  - [x] ~~FEATURED-GAMES-V1.0~~ replaced by SPECTATOR-V3
@@ -73,9 +73,7 @@ module Taric
73
73
  # @example
74
74
  # Taric::Client.expand_template(api_key: 'ritokey', region: :na, operation: Taric::Operation::Champion::CHAMPIONS)
75
75
  def expand_template(api_key:, region:, operation:, options: {})
76
- result = operation.expand(options.merge(operation_values(api_key: api_key, region: region)))
77
- puts result
78
- result
76
+ operation.expand(options.merge(operation_values(api_key: api_key, region: region)))
79
77
  end
80
78
  end
81
79
 
@@ -1,14 +1,12 @@
1
1
  require_relative 'champion'
2
2
  require_relative 'champion_mastery'
3
- require_relative 'current_game'
4
- require_relative 'featured_games'
5
- require_relative 'game'
6
3
  require_relative 'league'
7
4
  require_relative 'lol_static_data'
8
5
  require_relative 'lol_status'
9
6
  require_relative 'masteries'
10
7
  require_relative 'match'
11
8
  require_relative 'runes'
9
+ require_relative 'spectator'
12
10
  require_relative 'stats'
13
11
  require_relative 'summoner'
14
12
  require_relative 'team'
@@ -20,15 +18,13 @@ module Taric
20
18
  module API
21
19
  include Taric::Operation::Champion
22
20
  include Taric::Operation::ChampionMastery
23
- include Taric::Operation::CurrentGame
24
- include Taric::Operation::FeaturedGames
25
- include Taric::Operation::Game
26
21
  include Taric::Operation::League
27
22
  include Taric::Operation::LolStaticData
28
23
  include Taric::Operation::LolStatus
29
24
  include Taric::Operation::Masteries
30
25
  include Taric::Operation::Match
31
26
  include Taric::Operation::Runes
27
+ include Taric::Operation::Spectator
32
28
  include Taric::Operation::Stats
33
29
  include Taric::Operation::Summoner
34
30
  include Taric::Operation::Team
@@ -4,23 +4,24 @@ module Taric
4
4
  module Operation
5
5
  module LolStaticData
6
6
  include Taric::Operation::Base
7
- VERSION = 'v1.2'
8
- BASE_STATIC_URL = "https://global.api.pvp.net/api/lol/static-data/{region}/#{VERSION}"
9
7
 
10
- STATIC_CHAMPIONS = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/champion{?api_key,dataById,champData,locale,version}")
11
- STATIC_CHAMPION = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/champion/{id}{?api_key,locale,version}")
12
- STATIC_ITEMS = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/item{?api_key,itemListData,locale,version}")
13
- STATIC_ITEM = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/item/{id}{?api_key,itemData,locale,version}")
8
+ BASE_STATIC_URL = "https://{host}/lol/static-data/v3"
9
+
10
+ STATIC_CHAMPIONS = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/champions{?api_key,dataById,champListData,locale,version}")
11
+ STATIC_CHAMPION = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/champions/{id}{?api_key,champData,locale,version}")
12
+ STATIC_ITEMS = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/items{?api_key,itemListData,locale,version}")
13
+ STATIC_ITEM = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/items/{id}{?api_key,itemData,locale,version}")
14
14
  STATIC_LANGUAGE_STRINGS = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/language-strings{?api_key,locale,version}")
15
15
  STATIC_LANGUAGES = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/languages{?api_key}")
16
- STATIC_MAP = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/map{?api_key}")
17
- STATIC_MASTERIES = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/mastery{?api_key,masteryListData,locale,version}")
18
- STATIC_MASTERY = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/mastery/{id}{?api_key,masteryData,locale,version}")
19
- STATIC_REALM = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/realm{?api_key}")
20
- STATIC_RUNES = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/rune{?api_key,runeListData,locale,version}")
21
- STATIC_RUNE = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/rune/{id}{?api_key,runeData,locale,version}")
22
- STATIC_SUMMONER_SPELLS = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/summoner-spell{?api_key,spellData,locale,version}")
23
- STATIC_SUMMONER_SPELL = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/summoner-spell/{id}{?api_key,spellData,locale,version}")
16
+ STATIC_MAP = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/maps{?api_key,locale,version}")
17
+ STATIC_MASTERIES = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/masteries{?api_key,masteryListData,locale,version}")
18
+ STATIC_MASTERY = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/masteries/{id}{?api_key,masteryData,locale,version}")
19
+ STATIC_PROFILE_ICONS = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/profile-icons{?api_key,locale,version}")
20
+ STATIC_REALM = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/realms{?api_key}")
21
+ STATIC_RUNES = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/runes{?api_key,runeListData,locale,version}")
22
+ STATIC_RUNE = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/runes/{id}{?api_key,runeData,locale,version}")
23
+ STATIC_SUMMONER_SPELLS = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/summoner-spells{?api_key,spellData,locale,version}")
24
+ STATIC_SUMMONER_SPELL = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/summoner-spells/{id}{?api_key,spellData,locale,version}")
24
25
  STATIC_VERSIONS = EndpointTemplate.new(template_url: "#{BASE_STATIC_URL}/versions{?api_key}")
25
26
 
26
27
  CHAMP_DATA_OPTIONS = [
@@ -134,9 +135,9 @@ module Taric
134
135
 
135
136
  # Static data for champions
136
137
  #
137
- # @see https://developer.riotgames.com/api/methods#!/968/3326
138
+ # @see https://developer.riotgames.com/api-methods/#static-data-v3/GET_getChampionList
138
139
  # @param data_by_id [Boolean] optional, if true, champion data keyed to IDs
139
- # @param champ_data_option [String] optional, filter from [CHAMP_DATA_OPTIONS]
140
+ # @param champ_list_data [String] optional, filter from [CHAMP_DATA_OPTIONS]
140
141
  # @param locale [Symbol] optional, results will be in locale [LOCALE], or default for region if nil
141
142
  # @param version [String] optional, enforces version of static data, or latest if nil
142
143
  #
@@ -147,15 +148,15 @@ module Taric
147
148
  # champions = client.static_champions
148
149
  # # Mapped by IDs
149
150
  # champions = client.static_champions(data_by_id: true)
150
- def static_champions(data_by_id: nil, locale: nil, champ_data_option: nil, version: nil)
151
- response_for STATIC_CHAMPIONS, {locale: locale, dataById: data_by_id, champData: champ_data_option, version: version}
151
+ def static_champions(data_by_id: nil, locale: nil, champ_list_data: nil, version: nil)
152
+ response_for STATIC_CHAMPIONS, {locale: locale, dataById: data_by_id, champListData: champ_list_data, version: version}
152
153
  end
153
154
 
154
155
  # Static data for champion by id
155
156
  #
156
- # @see https://developer.riotgames.com/api/methods#!/968/3322
157
+ # @see https://developer.riotgames.com/api-methods/#static-data-v3/GET_getChampionById
157
158
  # @param id [Fixnum] id of champion
158
- # @param champ_data_option [String] optional, filter from [CHAMP_DATA_OPTIONS]
159
+ # @param champ_data [String] optional, filter from [CHAMP_DATA_OPTIONS]
159
160
  # @param locale [Symbol] optional, results will be in locale [LOCALE], or default for region if nil
160
161
  # @param version [String] optional, enforces version of static data, or latest if nil
161
162
  #
@@ -163,14 +164,14 @@ module Taric
163
164
  #
164
165
  # @example
165
166
  # champions = client.static_champions(id: 44)
166
- def static_champion(id:, champ_data_option: nil, locale: nil, version: nil)
167
- response_for STATIC_CHAMPION, {id: id, champData: champ_data_option, locale: locale, version: version}
167
+ def static_champion(id:, champ_data: nil, locale: nil, version: nil)
168
+ response_for STATIC_CHAMPION, {id: id, champData: champ_data, locale: locale, version: version}
168
169
  end
169
170
 
170
171
  # Static data for items
171
172
  #
172
- # @see https://developer.riotgames.com/api/methods#!/968/3314
173
- # @param item_data_option [String] optional, filter from [ITEM_DATA_OPTIONS]
173
+ # @see https://developer.riotgames.com/api-methods/#static-data-v3/GET_getItemList
174
+ # @param item_list_data [String] optional, filter from [ITEM_DATA_OPTIONS]
174
175
  # @param locale [Symbol] optional, results will be in locale [LOCALE], or default for region if nil
175
176
  # @param version [String] optional, enforces version of static data, or latest if nil
176
177
  #
@@ -179,8 +180,8 @@ module Taric
179
180
  # @example
180
181
  # # Defaults
181
182
  # champions = client.static_items
182
- def static_items(item_data_option: nil, locale: nil, version: nil)
183
- response_for STATIC_ITEMS, {itemListData: item_data_option, locale: locale, version: version}
183
+ def static_items(item_list_data: nil, locale: nil, version: nil)
184
+ response_for STATIC_ITEMS, {itemListData: item_list_data, locale: locale, version: version}
184
185
  end
185
186
 
186
187
  # Static data for item by id
@@ -195,8 +196,8 @@ module Taric
195
196
  #
196
197
  # @example
197
198
  # item = client.static_item(id: 2049)
198
- def static_item(id:, item_data_option: nil, locale: nil, version: nil)
199
- response_for STATIC_ITEM, {id: id, itemData: item_data_option, locale: locale, version: version}
199
+ def static_item(id:, item_data: nil, locale: nil, version: nil)
200
+ response_for STATIC_ITEM, {id: id, itemData: item_data, locale: locale, version: version}
200
201
  end
201
202
 
202
203
  # Returns [Hash] of language string data.
@@ -221,53 +222,58 @@ module Taric
221
222
  response_for STATIC_LANGUAGES
222
223
  end
223
224
 
224
- # Maps availalble.
225
+ # Maps available.
225
226
  # @see https://developer.riotgames.com/api/methods#!/968/3328
226
227
  # @param locale [String] filter by locale
227
228
  # @param version [String] patch version
228
229
  # @return [Hash] of maps available.
229
- def static_map(locale: nil, version: nil)
230
+ def static_maps(locale: nil, version: nil)
230
231
  response_for STATIC_MAP, {locale: locale, version: version}
231
232
  end
232
233
 
233
- # @see https://developer.riotgames.com/api/methods#!/968/3317
234
- def static_masteries(mastery_data_option: nil, locale: nil, version: nil)
235
- response_for STATIC_MASTERIES, {masteryListData: mastery_data_option, locale: locale, version: version}
234
+ # @see https://developer.riotgames.com/api-methods/#static-data-v3/GET_getMasteryList
235
+ def static_masteries(mastery_list_data: nil, locale: nil, version: nil)
236
+ response_for STATIC_MASTERIES, {masteryListData: mastery_list_data, locale: locale, version: version}
236
237
  end
237
238
 
238
- # @see https://developer.riotgames.com/api/methods#!/968/3318
239
- def static_mastery(id:, mastery_data_option: nil, locale: nil, version: nil)
240
- response_for STATIC_MASTERY, {id: id, masteryData: mastery_data_option, locale:locale, version: version}
239
+ # @see https://developer.riotgames.com/api-methods/#static-data-v3/GET_getMasteryById
240
+ def static_mastery(id:, mastery_data: nil, locale: nil, version: nil)
241
+ response_for STATIC_MASTERY, {id: id, masteryData: mastery_data, locale:locale, version: version}
242
+ end
243
+
244
+ # @see https://developer.riotgames.com/api/methods#!/968/3325
245
+ def static_profile_icons(locale: nil, version: nil)
246
+ response_for STATIC_PROFILE_ICONS, {locale: locale, version: version}
241
247
  end
242
248
 
243
249
  # @see https://developer.riotgames.com/api/methods#!/968/3325
244
- def static_realm
250
+ def static_realms
245
251
  response_for STATIC_REALM
246
252
  end
247
253
 
248
- # @see https://developer.riotgames.com/api/methods#!/968/3315
249
- def static_runes(rune_data_option: nil, locale: nil, version: nil)
250
- response_for STATIC_RUNES, {runeListData: rune_data_option, locale: locale, version: version}
254
+ # @see https://developer.riotgames.com/api-methods/#static-data-v3/GET_getRuneList
255
+ def static_runes(rune_list_data: nil, locale: nil, version: nil)
256
+ response_for STATIC_RUNES, {runeListData: rune_list_data, locale: locale, version: version}
251
257
  end
252
258
 
253
- # @see https://developer.riotgames.com/api/methods#!/968/3321
254
- def static_rune(id:, rune_data_option: nil, locale: nil, version: nil)
255
- response_for STATIC_RUNE, {id: id, runeData: rune_data_option, locale: locale, version: version}
259
+ # @see https://developer.riotgames.com/api-methods/#static-data-v3/GET_getRuneById
260
+ def static_rune(id:, rune_data: nil, locale: nil, version: nil)
261
+ response_for STATIC_RUNE, {id: id, runeData: rune_data, locale: locale, version: version}
256
262
  end
257
263
 
258
- # @see https://developer.riotgames.com/api/methods#!/968/3327
259
- def static_summoner_spells(spell_data_option: nil, locale: nil, version: nil, data_by_id: nil)
260
- response_for STATIC_SUMMONER_SPELLS, {spellData: spell_data_option, locale: locale, version: version, dataById: data_by_id}
264
+ # @see https://developer.riotgames.com/api-methods/#static-data-v3/GET_getSummonerSpellList
265
+ def static_summoner_spells(spell_list_data: nil, locale: nil, version: nil, data_by_id: nil)
266
+ response_for STATIC_SUMMONER_SPELLS, {spellListData: spell_list_data, locale: locale, version: version, dataById: data_by_id}
261
267
  end
262
268
 
263
- # @see https://developer.riotgames.com/api/methods#!/968/3320
264
- def static_summoner_spell(id:, spell_data_option: nil, locale: nil, version: nil)
265
- response_for STATIC_SUMMONER_SPELL, {id: id, spellData: spell_data_option, locale: locale, version: version}
269
+ # @see https://developer.riotgames.com/api-methods/#static-data-v3/GET_getSummonerSpellById
270
+ def static_summoner_spell(id:, spell_data: nil, locale: nil, version: nil)
271
+ response_for STATIC_SUMMONER_SPELL, {id: id, spellData: spell_data, locale: locale, version: version}
266
272
  end
267
273
 
268
274
  # Returns [Array] of static data version numbers.
269
275
  #
270
- # @see https://developer.riotgames.com/api/methods#!/968/3323
276
+ # @see https://developer.riotgames.com/api-methods/#static-data-v3/GET_getVersions
271
277
  # @return [Array] of version numbers
272
278
  # @example
273
279
  # versions = client.static_versions
@@ -8,6 +8,7 @@ module Taric
8
8
  MATCH_V3 = EndpointTemplate.new(template_url: 'https://{host}/lol/match/v3/matches/{matchId}{?api_key}')
9
9
  MATCHLIST_V3 = EndpointTemplate.new(template_url: 'https://{host}/lol/match/v3/matchlists/by-account/{accountId}{?api_key,beginTime,endIndex,season*,champion*,beginIndex,queue*,endTime}')
10
10
  MATCHLIST_RECENT_V3 = EndpointTemplate.new(template_url: 'https://{host}/lol/match/v3/matchlists/by-account/{accountId}/recent{?api_key}')
11
+ MATCH_TIMELINE_V3 = EndpointTemplate.new(template_url: 'https://{host}/lol/match/v3/timelines/by-match/{matchId}{?api_key}')
11
12
 
12
13
  # Match data for id.
13
14
  #
@@ -61,6 +62,14 @@ module Taric
61
62
  response_for MATCHLIST_RECENT_V3, {accountId: account_id}
62
63
  end
63
64
 
65
+ # Match timeline data
66
+ #
67
+ # @see https://developer.riotgames.com/api-methods/#match-v3/GET_getMatchTimeline
68
+ # @param match_id [Fixnum] id of match
69
+ # @return [Response] match timeline
70
+ def match_timeline(match_id: )
71
+ response_for MATCH_TIMELINE_V3, {matchId: match_id}
72
+ end
64
73
  end
65
74
  end
66
75
  end
@@ -0,0 +1,24 @@
1
+ require_relative 'endpoint_template'
2
+ module Taric
3
+ module Operation
4
+ module Spectator
5
+ CURRENT_GAME_V3 = EndpointTemplate.new(template_url: 'https://{host}/lol/spectator/v3/active-games/by-summoner/{summonerId}{?api_key}')
6
+ FEATURED_GAMES_V3 = EndpointTemplate.new(template_url: 'https://{host}/lol/spectator/v3/featured-games{?api_key}')
7
+
8
+ # Returns current game data for summoner id.
9
+ #
10
+ # @see https://developer.riotgames.com/api-methods/#spectator-v3/GET_getCurrentGameInfoBySummoner
11
+ # @param summoner_id [Fixnum] ID of summoner
12
+ # @return [Response] current game
13
+ def current_game(summoner_id: )
14
+ response_for CURRENT_GAME_V3, {summonerId: summoner_id}
15
+ end
16
+
17
+ #
18
+ # @see https://developer.riotgames.com/api-methods/#spectator-v3/GET_getFeaturedGames
19
+ def featured_games
20
+ response_for FEATURED_GAMES_V3
21
+ end
22
+ end
23
+ end
24
+ end
@@ -1,3 +1,3 @@
1
1
  module Taric
2
- VERSION = '1.0.0-alpha.6'
2
+ VERSION = '1.0.0-alpha.8'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: taric
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre.alpha.6
4
+ version: 1.0.0.pre.alpha.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joseph Yi
@@ -227,16 +227,14 @@ files:
227
227
  - lib/taric/operation/base.rb
228
228
  - lib/taric/operation/champion.rb
229
229
  - lib/taric/operation/champion_mastery.rb
230
- - lib/taric/operation/current_game.rb
231
230
  - lib/taric/operation/endpoint_template.rb
232
- - lib/taric/operation/featured_games.rb
233
- - lib/taric/operation/game.rb
234
231
  - lib/taric/operation/league.rb
235
232
  - lib/taric/operation/lol_static_data.rb
236
233
  - lib/taric/operation/lol_status.rb
237
234
  - lib/taric/operation/masteries.rb
238
235
  - lib/taric/operation/match.rb
239
236
  - lib/taric/operation/runes.rb
237
+ - lib/taric/operation/spectator.rb
240
238
  - lib/taric/operation/stats.rb
241
239
  - lib/taric/operation/summoner.rb
242
240
  - lib/taric/operation/team.rb
@@ -1,20 +0,0 @@
1
- require_relative 'endpoint_template'
2
- module Taric
3
- module Operation
4
- module CurrentGame
5
- GAME_INFO = EndpointTemplate.new(template_url: 'https://{host}/observer-mode/rest/consumer/getSpectatorGameInfo/{platform_id}/{summonerId}{?api_key}')
6
-
7
- # Returns current game data for summoner id.
8
- #
9
- # @see https://developer.riotgames.com/api/methods#!/956/3287
10
- # @param summoner_id [Fixnum] required, id of summoner
11
- # @return [Hash] of game data for summoner id
12
- #
13
- # @example
14
- # current_game = client.current_game(summoner_id: 21066)
15
- def current_game(summoner_id:)
16
- response_for GAME_INFO, summonerId: summoner_id
17
- end
18
- end
19
- end
20
- end
@@ -1,19 +0,0 @@
1
- require_relative 'endpoint_template'
2
- module Taric
3
- module Operation
4
- module FeaturedGames
5
- FEATURED_GAMES = EndpointTemplate.new(template_url:'https://{host}/observer-mode/rest/featured{?api_key}')
6
-
7
- # Returns featured games.
8
- #
9
- # @see https://developer.riotgames.com/api/methods#!/957/3288
10
- # @return [Hash] of featured games in [Array] keyed by 'gameList'
11
- #
12
- # @example
13
- # featured_games = client.featured_games['gameList']
14
- def featured_games
15
- response_for FEATURED_GAMES
16
- end
17
- end
18
- end
19
- end
@@ -1,24 +0,0 @@
1
- require_relative 'base'
2
- require_relative 'endpoint_template'
3
- module Taric
4
- module Operation
5
- module Game
6
- include Taric::Operation::Base
7
-
8
- GAME_VERSION = 'v1.3'.freeze
9
- RECENT = EndpointTemplate.new(template_url:"#{BASE_URL_FN.(GAME_VERSION)}/game/by-summoner/{summonerId}/recent{?api_key}")
10
-
11
- # Returns recent game data for summoner id.
12
- #
13
- # @see https://developer.riotgames.com/api/methods#!/959/3291
14
- # @param summoner_id [Fixnum] required, id of summoner
15
- # @return [Hash] of recent game data for summoner id
16
- #
17
- # @example
18
- # recent_games = client.recent_game(summoner_id: 21066)['games']
19
- def recent_games(summoner_id:)
20
- response_for RECENT, {summonerId: summoner_id}
21
- end
22
- end
23
- end
24
- end