ruby-lol 0.11.4 → 0.11.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lol/client.rb +3 -3
- data/lib/lol/{match_history_request.rb → match_list_request.rb} +3 -3
- data/lib/lol/request.rb +5 -4
- data/lib/lol/tournament_code.rb +58 -0
- data/lib/lol/tournament_provider_request.rb +32 -0
- data/lib/lol/version.rb +1 -1
- data/spec/api_version_spec.rb +1 -1
- data/spec/fixtures/v1/get-get-code.json +1 -0
- data/spec/fixtures/v2.2/{get-match_history.json → get-match_list.json} +1 -1
- data/spec/lol/{match_history_request_spec.rb → match_list_request_spec.rb} +5 -5
- data/spec/lol/request_spec.rb +12 -0
- data/spec/lol/tournament_code_spec.rb +20 -0
- data/spec/lol/tournament_provider_request_spec.rb +29 -0
- metadata +12 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18df63d93c0a8bc0124478eff1f55fe5125b4e81
|
4
|
+
data.tar.gz: 422e7750e22812f2f0e27f84cb6e08fd11f7077b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ceffd183e1b7d1ce23cb3f38f355ea9a4fd0bd918c30dfdb143b9776c5d723c5b8682d1cfb0f94096debf1b2279eac17c410f6b33e36652daaad5b30d60d2261
|
7
|
+
data.tar.gz: b204aee024ca163fa9c21745daf91720581647d4df22006a8a02486bbb80d35ab0ba45128ce0602743361fd5f54c6838012bac4cf4d3e96b686893010302ab5e
|
data/lib/lol/client.rb
CHANGED
@@ -28,9 +28,9 @@ module Lol
|
|
28
28
|
@match_request ||= MatchRequest.new(api_key, region, cache_store)
|
29
29
|
end
|
30
30
|
|
31
|
-
# @return [
|
32
|
-
def
|
33
|
-
@match_history_request ||=
|
31
|
+
# @return [MatchListRequest]
|
32
|
+
def match_list
|
33
|
+
@match_history_request ||= MatchListRequest.new(api_key, region, cache_store)
|
34
34
|
end
|
35
35
|
|
36
36
|
# @return [StatsRequest]
|
@@ -1,15 +1,15 @@
|
|
1
1
|
module Lol
|
2
|
-
class
|
2
|
+
class MatchListRequest < Request
|
3
3
|
# Returns the supported API Version
|
4
4
|
# @return [String] the supported api version
|
5
5
|
def self.api_version
|
6
6
|
"v2.2"
|
7
7
|
end
|
8
8
|
|
9
|
-
# Returns match
|
9
|
+
# Returns match list for a summoner
|
10
10
|
# @return []
|
11
11
|
def get summoner_id
|
12
|
-
perform_request(api_url("
|
12
|
+
perform_request(api_url("matchlist/by-summoner/#{summoner_id}"))
|
13
13
|
end
|
14
14
|
end
|
15
15
|
end
|
data/lib/lol/request.rb
CHANGED
@@ -62,7 +62,7 @@ module Lol
|
|
62
62
|
# @return [String]
|
63
63
|
def clean_url(url)
|
64
64
|
uri = URI.parse(url)
|
65
|
-
uri.query = CGI.parse(uri.query).reject { |k| k == 'api_key' }.to_query
|
65
|
+
uri.query = CGI.parse(uri.query || '').reject { |k| k == 'api_key' }.to_query
|
66
66
|
uri.to_s
|
67
67
|
end
|
68
68
|
|
@@ -73,11 +73,12 @@ module Lol
|
|
73
73
|
# @param options [Hash] Options passed to HTTParty
|
74
74
|
# @return [String] raw response of the call
|
75
75
|
def perform_request url, verb = :get, body = {}, options = {}
|
76
|
-
|
76
|
+
can_cache = [:post, :put].include?(verb) ? false : cached?
|
77
|
+
if can_cache && result = store.get("#{clean_url(url)}#{options.inspect}")
|
77
78
|
return JSON.parse(result)
|
78
79
|
end
|
79
80
|
|
80
|
-
params =
|
81
|
+
params = [:post, :put].include?(verb) ? [url, options.merge({body: body.to_json})] : url
|
81
82
|
response = self.class.send(verb, *params)
|
82
83
|
if response.respond_to?(:code) && !(200...300).include?(response.code)
|
83
84
|
raise NotFound.new("404 Not Found") if response.not_found?
|
@@ -85,7 +86,7 @@ module Lol
|
|
85
86
|
raise InvalidAPIResponse.new(url, response)
|
86
87
|
end
|
87
88
|
|
88
|
-
store.setex "#{clean_url(url)}#{options.inspect}", ttl, response.to_json if
|
89
|
+
store.setex "#{clean_url(url)}#{options.inspect}", ttl, response.to_json if can_cache
|
89
90
|
|
90
91
|
response
|
91
92
|
end
|
@@ -0,0 +1,58 @@
|
|
1
|
+
require 'lol/model'
|
2
|
+
|
3
|
+
module Lol
|
4
|
+
class TournamentCode < Lol::Model
|
5
|
+
attr_reader :id
|
6
|
+
|
7
|
+
attr_reader :provider_id
|
8
|
+
|
9
|
+
# @!attribute [r] tournament_id
|
10
|
+
# @return [Fixnum] Tournament ID
|
11
|
+
attr_reader :tournament_id
|
12
|
+
|
13
|
+
# @!attribute [r] code
|
14
|
+
# @return [String] Code
|
15
|
+
attr_reader :code
|
16
|
+
|
17
|
+
# @!attribute [r] region
|
18
|
+
# @return [String] Region
|
19
|
+
attr_reader :region
|
20
|
+
|
21
|
+
# @!attribute [r] map
|
22
|
+
# @return [String] Map
|
23
|
+
attr_reader :map
|
24
|
+
|
25
|
+
# @!attribute [r] team_size
|
26
|
+
# @return [Fixnum] Team Size
|
27
|
+
attr_reader :team_size
|
28
|
+
|
29
|
+
# @!attribute [r] spectators
|
30
|
+
# @return [String] Spectators Type
|
31
|
+
attr_reader :spectators
|
32
|
+
|
33
|
+
# @!attribute [r] pick_type
|
34
|
+
# @return [String] Pick Type
|
35
|
+
attr_reader :pick_type
|
36
|
+
|
37
|
+
# @!attribute [r] lobby_name
|
38
|
+
# @return [String] Lobby Name
|
39
|
+
attr_reader :lobby_name
|
40
|
+
|
41
|
+
# @!attribute [r] participants
|
42
|
+
# @return [Array] Summoner IDS of Allowed participants
|
43
|
+
attr_reader :participants
|
44
|
+
|
45
|
+
attr_reader :password
|
46
|
+
|
47
|
+
private
|
48
|
+
|
49
|
+
attr_writer :id, :provider_id, :tournament_id, :code, :region, :map, :team_size,
|
50
|
+
:spectators, :pick_type, :lobby_name, :password, :participants
|
51
|
+
|
52
|
+
def initialize options = {}
|
53
|
+
super
|
54
|
+
@participants = [] if @participants.nil?
|
55
|
+
end
|
56
|
+
|
57
|
+
end
|
58
|
+
end
|
@@ -60,6 +60,38 @@ module Lol
|
|
60
60
|
JSON.parse(tournament_request "code?#{params}", body)
|
61
61
|
end
|
62
62
|
|
63
|
+
# Returns the details of the tournament code
|
64
|
+
# @param tournament_code [String] Tournament code
|
65
|
+
def get_code tournament_code
|
66
|
+
TournamentCode.new perform_request(api_url("code/#{tournament_code}?#{api_query_string}"))
|
67
|
+
end
|
68
|
+
|
69
|
+
# Returns the updated tournament code
|
70
|
+
# @param tournament_code [String] Tournament Code
|
71
|
+
# @param options [Hash] Tournament Code options hash
|
72
|
+
# @option options [Array] :allowed_participants Array of allowed summoner ids (minimum 10)
|
73
|
+
# @option options [String] :pick_type BLIND_PICK, DRAFT_MODE, ALL_RANDOM, TOURNAMENT_DRAFT
|
74
|
+
# @option options [String] :map_type SUMMONERS_RIFT, CRYSTAL_SCAR, HOWLING_ABYSS
|
75
|
+
# @option options [String] :spectator_type NONE, LOBBYONLY, ALL
|
76
|
+
def update_code tournament_code, options = {}
|
77
|
+
allowed_participants = options.delete(:allowed_participants) || nil
|
78
|
+
allowed_participants = allowed_participants.join(",") unless allowed_participants.nil?
|
79
|
+
pick_type = options.delete(:pick_type) || nil
|
80
|
+
map_type = options.delete(:map_type) || nil
|
81
|
+
spectator_type = options.delete(:spectator_type) || nil
|
82
|
+
|
83
|
+
body = {
|
84
|
+
allowedParticipants: allowed_participants ,
|
85
|
+
spectatorType: spectator_type,
|
86
|
+
pickType: pick_type,
|
87
|
+
mapType: map_type
|
88
|
+
}.reject{ |k,v| v.nil? }
|
89
|
+
|
90
|
+
pau = post_api_url "code/#{tournament_code}"
|
91
|
+
perform_request(pau[:url], :put, body, pau[:options])
|
92
|
+
get_code tournament_code
|
93
|
+
end
|
94
|
+
|
63
95
|
def provider region, url
|
64
96
|
tournament_request "provider", {region: region, url: url}
|
65
97
|
end
|
data/lib/lol/version.rb
CHANGED
data/spec/api_version_spec.rb
CHANGED
@@ -18,7 +18,7 @@ describe "API Versions" do
|
|
18
18
|
check_api_version(LeagueRequest, "v2.5")
|
19
19
|
check_api_version(StaticRequest, "v1.2")
|
20
20
|
check_api_version(MatchRequest, "v2.2")
|
21
|
-
check_api_version(
|
21
|
+
check_api_version(MatchListRequest, "v2.2")
|
22
22
|
check_api_version(StatsRequest, "v1.3")
|
23
23
|
check_api_version(SummonerRequest, "v1.4")
|
24
24
|
check_api_version(TeamRequest, "v2.4")
|
@@ -0,0 +1 @@
|
|
1
|
+
{"id":1,"providerId":2,"tournamentId":3,"code":"CODE-FOR-TEST","region":"EUW","map":"SUMMONERS_RIFT","teamSize":5,"spectators":"ALL","pickType":"BLIND_PICK","lobbyName":"LOBBY-NAME","password":"PASSWORD"}
|
@@ -1 +1 @@
|
|
1
|
-
{"matches":[{"matchId":2173849064,"region":"EUW","platformId":"EUW1","matchMode":"CLASSIC","matchType":"MATCHED_GAME","matchCreation":1435354692565,"matchDuration":1301,"queueType":"RANKED_SOLO_5x5","mapId":11,"season":"SEASON2015","matchVersion":"5.12.0.341","participants":[{"teamId":100,"spell1Id":11,"spell2Id":4,"championId":102,"highestAchievedSeasonTier":"SILVER","timeline":{"creepsPerMinDeltas":{"zeroToTen":0.7,"tenToTwenty":2.1},"xpPerMinDeltas":{"zeroToTen":378.6,"tenToTwenty":473.79999999999995},"goldPerMinDeltas":{"zeroToTen":273.20000000000005,"tenToTwenty":407.29999999999995},"damageTakenPerMinDeltas":{"zeroToTen":509.9,"tenToTwenty":829.4},"role":"NONE","lane":"JUNGLE"},"masteries":[{"masteryId":4112,"rank":4},{"masteryId":4114,"rank":1},{"masteryId":4122,"rank":3},{"masteryId":4132,"rank":1},{"masteryId":4211,"rank":2},{"masteryId":4212,"rank":2},{"masteryId":4214,"rank":2},{"masteryId":4221,"rank":1},{"masteryId":4222,"rank":3},{"masteryId":4231,"rank":1},{"masteryId":4232,"rank":1},{"masteryId":4241,"rank":3},{"masteryId":4242,"rank":1},{"masteryId":4251,"rank":1},{"masteryId":4252,"rank":3},{"masteryId":4262,"rank":1}],"stats":{"winner":true,"champLevel":13,"item0":3717,"item1":3153,"item2":2003,"item3":0,"item4":3111,"item5":0,"item6":3340,"kills":1,"doubleKills":0,"tripleKills":0,"quadraKills":0,"pentaKills":0,"unrealKills":0,"largestKillingSpree":0,"deaths":0,"assists":4,"totalDamageDealt":125772,"totalDamageDealtToChampions":2716,"totalDamageTaken":14956,"largestCriticalStrike":0,"totalHeal":1552,"minionsKilled":51,"neutralMinionsKilled":78,"neutralMinionsKilledTeamJungle":63,"neutralMinionsKilledEnemyJungle":15,"goldEarned":8439,"goldSpent":7285,"combatPlayerScore":0,"objectivePlayerScore":0,"totalPlayerScore":0,"totalScoreRank":0,"magicDamageDealtToChampions":1550,"physicalDamageDealtToChampions":990,"trueDamageDealtToChampions":176,"visionWardsBoughtInGame":1,"sightWardsBoughtInGame":2,"magicDamageDealt":80031,"physicalDamageDealt":37300,"trueDamageDealt":8441,"magicDamageTaken":1038,"physicalDamageTaken":13260,"trueDamageTaken":657,"firstBloodKill":false,"firstBloodAssist":false,"firstTowerKill":false,"firstTowerAssist":false,"firstInhibitorKill":false,"firstInhibitorAssist":false,"inhibitorKills":0,"towerKills":0,"wardsPlaced":9,"wardsKilled":1,"largestMultiKill":1,"killingSprees":0,"totalUnitsHealed":1,"totalTimeCrowdControlDealt":493},"participantId":0,"runes":[{"runeId":5245,"rank":9},{"runeId":5289,"rank":3},{"runeId":5295,"rank":6},{"runeId":5317,"rank":9},{"runeId":5337,"rank":3}]}],"participantIdentities":[{"participantId":0,"player":{"summonerId":30743211,"summonerName":"intinig","matchHistoryUri":"/v1/stats/player_history/EUW1/34720432","profileIcon":784}}]},{"matchId":2176278636,"region":"EUW","platformId":"EUW1","matchMode":"CLASSIC","matchType":"MATCHED_GAME","matchCreation":1435505379827,"matchDuration":2426,"queueType":"RANKED_SOLO_5x5","mapId":11,"season":"SEASON2015","matchVersion":"5.12.0.341","participants":[{"teamId":200,"spell1Id":3,"spell2Id":4,"championId":25,"highestAchievedSeasonTier":"SILVER","timeline":{"creepsPerMinDeltas":{"zeroToTen":0.6,"tenToTwenty":1.4,"twentyToThirty":1.2999999999999998,"thirtyToEnd":1.7},"xpPerMinDeltas":{"zeroToTen":283.0,"tenToTwenty":348.4,"twentyToThirty":276.7,"thirtyToEnd":594.2},"goldPerMinDeltas":{"zeroToTen":159.5,"tenToTwenty":308.4,"twentyToThirty":221.9,"thirtyToEnd":394.8},"csDiffPerMinDeltas":{"zeroToTen":-0.9499999999999997,"tenToTwenty":0.30000000000000004,"twentyToThirty":-0.6500000000000004,"thirtyToEnd":0.5500000000000003},"xpDiffPerMinDeltas":{"zeroToTen":-6.949999999999989,"tenToTwenty":-26.25,"twentyToThirty":-208.29999999999995,"thirtyToEnd":307.30000000000007},"damageTakenPerMinDeltas":{"zeroToTen":253.0,"tenToTwenty":569.2,"twentyToThirty":580.6,"thirtyToEnd":594.9},"damageTakenDiffPerMinDeltas":{"zeroToTen":-99.05000000000001,"tenToTwenty":-241.75000000000006,"twentyToThirty":15.800000000000011,"thirtyToEnd":-373.5500000000001},"role":"DUO_SUPPORT","lane":"BOTTOM"},"masteries":[{"masteryId":4113,"rank":4},{"masteryId":4121,"rank":1},{"masteryId":4123,"rank":3},{"masteryId":4133,"rank":1},{"masteryId":4211,"rank":2},{"masteryId":4212,"rank":2},{"masteryId":4221,"rank":1},{"masteryId":4222,"rank":2},{"masteryId":4313,"rank":3},{"masteryId":4314,"rank":1},{"masteryId":4322,"rank":3},{"masteryId":4323,"rank":1},{"masteryId":4324,"rank":1},{"masteryId":4331,"rank":3},{"masteryId":4334,"rank":1},{"masteryId":4342,"rank":1}],"stats":{"winner":true,"champLevel":16,"item0":3028,"item1":3092,"item2":3157,"item3":2049,"item4":0,"item5":3275,"item6":3364,"kills":2,"doubleKills":0,"tripleKills":0,"quadraKills":0,"pentaKills":0,"unrealKills":0,"largestKillingSpree":2,"deaths":7,"assists":16,"totalDamageDealt":62839,"totalDamageDealtToChampions":21093,"totalDamageTaken":20172,"largestCriticalStrike":0,"totalHeal":1127,"minionsKilled":52,"neutralMinionsKilled":0,"neutralMinionsKilledTeamJungle":0,"neutralMinionsKilledEnemyJungle":0,"goldEarned":11794,"goldSpent":9885,"combatPlayerScore":0,"objectivePlayerScore":0,"totalPlayerScore":0,"totalScoreRank":0,"magicDamageDealtToChampions":19457,"physicalDamageDealtToChampions":1635,"trueDamageDealtToChampions":0,"visionWardsBoughtInGame":4,"sightWardsBoughtInGame":0,"magicDamageDealt":55819,"physicalDamageDealt":7020,"trueDamageDealt":0,"magicDamageTaken":6118,"physicalDamageTaken":13110,"trueDamageTaken":943,"firstBloodKill":false,"firstBloodAssist":false,"firstTowerKill":false,"firstTowerAssist":false,"firstInhibitorKill":false,"firstInhibitorAssist":false,"inhibitorKills":0,"towerKills":0,"wardsPlaced":24,"wardsKilled":3,"largestMultiKill":1,"killingSprees":1,"totalUnitsHealed":1,"totalTimeCrowdControlDealt":193},"participantId":0,"runes":[{"runeId":5297,"rank":9},{"runeId":5315,"rank":9},{"runeId":5347,"rank":3},{"runeId":5402,"rank":9}]}],"participantIdentities":[{"participantId":0,"player":{"summonerId":30743211,"summonerName":"intinig","matchHistoryUri":"/v1/stats/player_history/EUW1/34720432","profileIcon":784}}]},{"matchId":2177024488,"region":"EUW","platformId":"EUW1","matchMode":"CLASSIC","matchType":"MATCHED_GAME","matchCreation":1435521657303,"matchDuration":2896,"queueType":"RANKED_SOLO_5x5","mapId":11,"season":"SEASON2015","matchVersion":"5.12.0.341","participants":[{"teamId":100,"spell1Id":7,"spell2Id":4,"championId":18,"highestAchievedSeasonTier":"SILVER","timeline":{"creepsPerMinDeltas":{"zeroToTen":4.699999999999999,"tenToTwenty":5.6,"twentyToThirty":4.9,"thirtyToEnd":2.8666666666666667},"xpPerMinDeltas":{"zeroToTen":254.9,"tenToTwenty":360.4,"twentyToThirty":479.0,"thirtyToEnd":399.5333333333333},"goldPerMinDeltas":{"zeroToTen":191.89999999999998,"tenToTwenty":275.6,"twentyToThirty":415.9,"thirtyToEnd":305.6666666666667},"csDiffPerMinDeltas":{"zeroToTen":-0.9000000000000001,"tenToTwenty":-0.9000000000000001,"twentyToThirty":-0.7,"thirtyToEnd":-3.1666666666666665},"xpDiffPerMinDeltas":{"zeroToTen":-58.0,"tenToTwenty":47.50000000000006,"twentyToThirty":67.75,"thirtyToEnd":-124.59999999999998},"damageTakenPerMinDeltas":{"zeroToTen":305.29999999999995,"tenToTwenty":546.8,"twentyToThirty":667.8,"thirtyToEnd":920.4},"damageTakenDiffPerMinDeltas":{"zeroToTen":89.39999999999998,"tenToTwenty":-146.7,"twentyToThirty":58.34999999999991,"thirtyToEnd":-25.333333333333332},"role":"DUO_CARRY","lane":"BOTTOM"},"masteries":[{"masteryId":4112,"rank":4},{"masteryId":4114,"rank":1},{"masteryId":4122,"rank":3},{"masteryId":4124,"rank":1},{"masteryId":4132,"rank":1},{"masteryId":4134,"rank":3},{"masteryId":4142,"rank":2},{"masteryId":4144,"rank":1},{"masteryId":4151,"rank":1},{"masteryId":4152,"rank":3},{"masteryId":4162,"rank":1},{"masteryId":4211,"rank":2},{"masteryId":4212,"rank":2},{"masteryId":4221,"rank":1},{"masteryId":4222,"rank":3},{"masteryId":4232,"rank":1}],"stats":{"winner":true,"champLevel":18,"item0":3072,"item1":3031,"item2":3087,"item3":1031,"item4":3035,"item5":3006,"item6":3363,"kills":6,"doubleKills":0,"tripleKills":0,"quadraKills":0,"pentaKills":0,"unrealKills":0,"largestKillingSpree":3,"deaths":10,"assists":16,"totalDamageDealt":289124,"totalDamageDealtToChampions":27484,"totalDamageTaken":32079,"largestCriticalStrike":1026,"totalHeal":5586,"minionsKilled":242,"neutralMinionsKilled":34,"neutralMinionsKilledTeamJungle":31,"neutralMinionsKilledEnemyJungle":3,"goldEarned":17609,"goldSpent":15330,"combatPlayerScore":0,"objectivePlayerScore":0,"totalPlayerScore":0,"totalScoreRank":0,"magicDamageDealtToChampions":6138,"physicalDamageDealtToChampions":21345,"trueDamageDealtToChampions":0,"visionWardsBoughtInGame":1,"sightWardsBoughtInGame":5,"magicDamageDealt":62202,"physicalDamageDealt":226106,"trueDamageDealt":816,"magicDamageTaken":8728,"physicalDamageTaken":23147,"trueDamageTaken":204,"firstBloodKill":false,"firstBloodAssist":false,"firstTowerKill":false,"firstTowerAssist":false,"firstInhibitorKill":false,"firstInhibitorAssist":false,"inhibitorKills":0,"towerKills":5,"wardsPlaced":15,"wardsKilled":2,"largestMultiKill":1,"killingSprees":2,"totalUnitsHealed":4,"totalTimeCrowdControlDealt":391},"participantId":0,"runes":[{"runeId":5245,"rank":9},{"runeId":5289,"rank":9},{"runeId":5317,"rank":9},{"runeId":5337,"rank":3}]}],"participantIdentities":[{"participantId":0,"player":{"summonerId":30743211,"summonerName":"intinig","matchHistoryUri":"/v1/stats/player_history/EUW1/34720432","profileIcon":784}}]},{"matchId":2177985555,"region":"EUW","platformId":"EUW1","matchMode":"CLASSIC","matchType":"MATCHED_GAME","matchCreation":1435597843012,"matchDuration":2575,"queueType":"RANKED_SOLO_5x5","mapId":11,"season":"SEASON2015","matchVersion":"5.12.0.341","participants":[{"teamId":100,"spell1Id":11,"spell2Id":4,"championId":79,"highestAchievedSeasonTier":"SILVER","timeline":{"creepsPerMinDeltas":{"zeroToTen":0.2,"tenToTwenty":1.7000000000000002,"twentyToThirty":0.7,"thirtyToEnd":1.1},"xpPerMinDeltas":{"zeroToTen":251.5,"tenToTwenty":403.0,"twentyToThirty":381.8,"thirtyToEnd":262.0},"goldPerMinDeltas":{"zeroToTen":210.6,"tenToTwenty":322.0,"twentyToThirty":236.0,"thirtyToEnd":189.7},"csDiffPerMinDeltas":{"zeroToTen":0.1,"tenToTwenty":0.7,"twentyToThirty":5.551115123125783E-17,"thirtyToEnd":-0.7},"xpDiffPerMinDeltas":{"zeroToTen":-0.09999999999999432,"tenToTwenty":-62.5,"twentyToThirty":-58.69999999999999,"thirtyToEnd":-131.8},"damageTakenPerMinDeltas":{"zeroToTen":544.9,"tenToTwenty":814.5,"twentyToThirty":1003.2,"thirtyToEnd":766.6},"damageTakenDiffPerMinDeltas":{"zeroToTen":171.79999999999998,"tenToTwenty":242.00000000000003,"twentyToThirty":520.7,"thirtyToEnd":361.1},"role":"NONE","lane":"JUNGLE"},"masteries":[{"masteryId":4111,"rank":1},{"masteryId":4113,"rank":4},{"masteryId":4122,"rank":3},{"masteryId":4123,"rank":3},{"masteryId":4132,"rank":1},{"masteryId":4133,"rank":1},{"masteryId":4134,"rank":3},{"masteryId":4144,"rank":1},{"masteryId":4152,"rank":3},{"masteryId":4162,"rank":1},{"masteryId":4211,"rank":2},{"masteryId":4214,"rank":2},{"masteryId":4221,"rank":1},{"masteryId":4222,"rank":3},{"masteryId":4232,"rank":1}],"stats":{"winner":false,"champLevel":15,"item0":3725,"item1":3110,"item2":3190,"item3":2049,"item4":3047,"item5":0,"item6":3364,"kills":0,"doubleKills":0,"tripleKills":0,"quadraKills":0,"pentaKills":0,"unrealKills":0,"largestKillingSpree":0,"deaths":7,"assists":7,"totalDamageDealt":152520,"totalDamageDealtToChampions":9218,"totalDamageTaken":35296,"largestCriticalStrike":412,"totalHeal":6182,"minionsKilled":38,"neutralMinionsKilled":92,"neutralMinionsKilledTeamJungle":89,"neutralMinionsKilledEnemyJungle":3,"goldEarned":10640,"goldSpent":10400,"combatPlayerScore":0,"objectivePlayerScore":0,"totalPlayerScore":0,"totalScoreRank":0,"magicDamageDealtToChampions":7852,"physicalDamageDealtToChampions":1193,"trueDamageDealtToChampions":172,"visionWardsBoughtInGame":2,"sightWardsBoughtInGame":4,"magicDamageDealt":95503,"physicalDamageDealt":30432,"trueDamageDealt":26584,"magicDamageTaken":8718,"physicalDamageTaken":26231,"trueDamageTaken":346,"firstBloodKill":false,"firstBloodAssist":false,"firstTowerKill":false,"firstTowerAssist":false,"firstInhibitorKill":false,"firstInhibitorAssist":false,"inhibitorKills":0,"towerKills":0,"wardsPlaced":23,"wardsKilled":6,"largestMultiKill":0,"killingSprees":0,"totalUnitsHealed":1,"totalTimeCrowdControlDealt":1267},"participantId":0,"runes":[{"runeId":5247,"rank":9},{"runeId":5290,"rank":9},{"runeId":5317,"rank":9},{"runeId":5357,"rank":3}]}],"participantIdentities":[{"participantId":0,"player":{"summonerId":30743211,"summonerName":"intinig","matchHistoryUri":"/v1/stats/player_history/EUW1/34720432","profileIcon":784}}]},{"matchId":2187542528,"region":"EUW","platformId":"EUW1","matchMode":"CLASSIC","matchType":"MATCHED_GAME","matchCreation":1436119345411,"matchDuration":2334,"queueType":"RANKED_SOLO_5x5","mapId":11,"season":"SEASON2015","matchVersion":"5.12.0.348","participants":[{"teamId":100,"spell1Id":3,"spell2Id":4,"championId":53,"highestAchievedSeasonTier":"SILVER","timeline":{"creepsPerMinDeltas":{"zeroToTen":1.2,"tenToTwenty":1.3,"twentyToThirty":2.5,"thirtyToEnd":1.0},"xpPerMinDeltas":{"zeroToTen":320.29999999999995,"tenToTwenty":246.2,"twentyToThirty":436.79999999999995,"thirtyToEnd":218.6},"goldPerMinDeltas":{"zeroToTen":161.2,"tenToTwenty":160.4,"twentyToThirty":312.79999999999995,"thirtyToEnd":206.8},"damageTakenPerMinDeltas":{"zeroToTen":317.6,"tenToTwenty":1002.5,"twentyToThirty":747.7,"thirtyToEnd":1744.6},"role":"SOLO","lane":"BOTTOM"},"masteries":[{"masteryId":4211,"rank":2},{"masteryId":4213,"rank":2},{"masteryId":4221,"rank":1},{"masteryId":4222,"rank":3},{"masteryId":4231,"rank":1},{"masteryId":4232,"rank":1},{"masteryId":4233,"rank":3},{"masteryId":4241,"rank":3},{"masteryId":4313,"rank":3},{"masteryId":4314,"rank":1},{"masteryId":4322,"rank":2},{"masteryId":4323,"rank":1},{"masteryId":4324,"rank":1},{"masteryId":4331,"rank":3},{"masteryId":4334,"rank":1},{"masteryId":4341,"rank":1},{"masteryId":4342,"rank":1}],"stats":{"winner":false,"champLevel":14,"item0":1033,"item1":3401,"item2":1028,"item3":2049,"item4":3110,"item5":3270,"item6":3364,"kills":2,"doubleKills":0,"tripleKills":0,"quadraKills":0,"pentaKills":0,"unrealKills":0,"largestKillingSpree":0,"deaths":11,"assists":11,"totalDamageDealt":59273,"totalDamageDealtToChampions":11262,"totalDamageTaken":35205,"largestCriticalStrike":0,"totalHeal":3786,"minionsKilled":62,"neutralMinionsKilled":0,"neutralMinionsKilledTeamJungle":0,"neutralMinionsKilledEnemyJungle":0,"goldEarned":9022,"goldSpent":8670,"combatPlayerScore":0,"objectivePlayerScore":0,"totalPlayerScore":0,"totalScoreRank":0,"magicDamageDealtToChampions":8292,"physicalDamageDealtToChampions":2970,"trueDamageDealtToChampions":0,"visionWardsBoughtInGame":3,"sightWardsBoughtInGame":1,"magicDamageDealt":45425,"physicalDamageDealt":10698,"trueDamageDealt":3148,"magicDamageTaken":12917,"physicalDamageTaken":19796,"trueDamageTaken":2492,"firstBloodKill":false,"firstBloodAssist":false,"firstTowerKill":false,"firstTowerAssist":false,"firstInhibitorKill":false,"firstInhibitorAssist":false,"inhibitorKills":0,"towerKills":0,"wardsPlaced":31,"wardsKilled":4,"largestMultiKill":1,"killingSprees":0,"totalUnitsHealed":4,"totalTimeCrowdControlDealt":1028},"participantId":0,"runes":[{"runeId":5257,"rank":9},{"runeId":5289,"rank":9},{"runeId":5315,"rank":6},{"runeId":5317,"rank":3},{"runeId":5345,"rank":2},{"runeId":5347,"rank":1}]}],"participantIdentities":[{"participantId":0,"player":{"summonerId":30743211,"summonerName":"intinig","matchHistoryUri":"/v1/stats/player_history/EUW1/34720432","profileIcon":784}}]},{"matchId":2188951682,"region":"EUW","platformId":"EUW1","matchMode":"CLASSIC","matchType":"MATCHED_GAME","matchCreation":1436201953506,"matchDuration":2454,"queueType":"RANKED_SOLO_5x5","mapId":11,"season":"SEASON2015","matchVersion":"5.12.0.348","participants":[{"teamId":100,"spell1Id":14,"spell2Id":4,"championId":412,"highestAchievedSeasonTier":"SILVER","timeline":{"creepsPerMinDeltas":{"zeroToTen":0.6000000000000001,"tenToTwenty":1.0,"twentyToThirty":1.0,"thirtyToEnd":0.6},"xpPerMinDeltas":{"zeroToTen":253.6,"tenToTwenty":228.60000000000002,"twentyToThirty":426.59999999999997,"thirtyToEnd":564.1},"goldPerMinDeltas":{"zeroToTen":167.10000000000002,"tenToTwenty":230.7,"twentyToThirty":247.7,"thirtyToEnd":358.6},"damageTakenPerMinDeltas":{"zeroToTen":253.60000000000002,"tenToTwenty":541.5,"twentyToThirty":1474.2,"thirtyToEnd":1170.6},"role":"DUO_SUPPORT","lane":"BOTTOM"},"masteries":[{"masteryId":4211,"rank":2},{"masteryId":4213,"rank":2},{"masteryId":4221,"rank":1},{"masteryId":4222,"rank":3},{"masteryId":4231,"rank":1},{"masteryId":4232,"rank":1},{"masteryId":4233,"rank":3},{"masteryId":4241,"rank":3},{"masteryId":4313,"rank":3},{"masteryId":4314,"rank":1},{"masteryId":4322,"rank":2},{"masteryId":4323,"rank":1},{"masteryId":4324,"rank":1},{"masteryId":4331,"rank":3},{"masteryId":4334,"rank":1},{"masteryId":4341,"rank":1},{"masteryId":4342,"rank":1}],"stats":{"winner":true,"champLevel":16,"item0":3270,"item1":3401,"item2":3190,"item3":2049,"item4":3024,"item5":3082,"item6":3364,"kills":1,"doubleKills":0,"tripleKills":0,"quadraKills":0,"pentaKills":0,"unrealKills":0,"largestKillingSpree":0,"deaths":8,"assists":24,"totalDamageDealt":38435,"totalDamageDealtToChampions":14327,"totalDamageTaken":34416,"largestCriticalStrike":0,"totalHeal":7562,"minionsKilled":32,"neutralMinionsKilled":0,"neutralMinionsKilledTeamJungle":0,"neutralMinionsKilledEnemyJungle":0,"goldEarned":10968,"goldSpent":9800,"combatPlayerScore":0,"objectivePlayerScore":0,"totalPlayerScore":0,"totalScoreRank":0,"magicDamageDealtToChampions":11251,"physicalDamageDealtToChampions":1945,"trueDamageDealtToChampions":1130,"visionWardsBoughtInGame":3,"sightWardsBoughtInGame":0,"magicDamageDealt":23917,"physicalDamageDealt":13388,"trueDamageDealt":1130,"magicDamageTaken":15976,"physicalDamageTaken":15399,"trueDamageTaken":3041,"firstBloodKill":false,"firstBloodAssist":false,"firstTowerKill":true,"firstTowerAssist":false,"firstInhibitorKill":false,"firstInhibitorAssist":true,"inhibitorKills":0,"towerKills":1,"wardsPlaced":30,"wardsKilled":2,"largestMultiKill":1,"killingSprees":0,"totalUnitsHealed":4,"totalTimeCrowdControlDealt":217},"participantId":0,"runes":[{"runeId":5245,"rank":9},{"runeId":5289,"rank":6},{"runeId":5301,"rank":3},{"runeId":5315,"rank":9},{"runeId":5347,"rank":3}]}],"participantIdentities":[{"participantId":0,"player":{"summonerId":30743211,"summonerName":"intinig","matchHistoryUri":"/v1/stats/player_history/EUW1/34720432","profileIcon":784}}]},{"matchId":2190847923,"region":"EUW","platformId":"EUW1","matchMode":"CLASSIC","matchType":"MATCHED_GAME","matchCreation":1436306450891,"matchDuration":2120,"queueType":"RANKED_SOLO_5x5","mapId":11,"season":"SEASON2015","matchVersion":"5.12.0.348","participants":[{"teamId":200,"spell1Id":11,"spell2Id":4,"championId":79,"highestAchievedSeasonTier":"SILVER","timeline":{"creepsPerMinDeltas":{"zeroToTen":0.2,"tenToTwenty":3.0,"twentyToThirty":2.7,"thirtyToEnd":4.2},"xpPerMinDeltas":{"zeroToTen":251.8,"tenToTwenty":427.0,"twentyToThirty":473.6,"thirtyToEnd":555.0},"goldPerMinDeltas":{"zeroToTen":234.7,"tenToTwenty":350.8,"twentyToThirty":328.4,"thirtyToEnd":300.8},"csDiffPerMinDeltas":{"zeroToTen":-0.2,"tenToTwenty":1.3000000000000003,"twentyToThirty":0.8999999999999999,"thirtyToEnd":1.0},"xpDiffPerMinDeltas":{"zeroToTen":-45.499999999999986,"tenToTwenty":83.99999999999997,"twentyToThirty":-34.79999999999998,"thirtyToEnd":50.0},"damageTakenPerMinDeltas":{"zeroToTen":638.6,"tenToTwenty":860.6999999999999,"twentyToThirty":1265.0,"thirtyToEnd":1877.2},"damageTakenDiffPerMinDeltas":{"zeroToTen":-20.999999999999943,"tenToTwenty":159.59999999999997,"twentyToThirty":7.7999999999999545,"thirtyToEnd":434.20000000000005},"role":"NONE","lane":"JUNGLE"},"masteries":[{"masteryId":4113,"rank":4},{"masteryId":4114,"rank":1},{"masteryId":4123,"rank":3},{"masteryId":4133,"rank":1},{"masteryId":4211,"rank":2},{"masteryId":4214,"rank":2},{"masteryId":4221,"rank":1},{"masteryId":4222,"rank":3},{"masteryId":4231,"rank":1},{"masteryId":4232,"rank":1},{"masteryId":4233,"rank":2},{"masteryId":4241,"rank":3},{"masteryId":4242,"rank":1},{"masteryId":4251,"rank":1},{"masteryId":4252,"rank":3},{"masteryId":4262,"rank":1}],"stats":{"winner":false,"champLevel":16,"item0":3110,"item1":3065,"item2":3270,"item3":2043,"item4":1031,"item5":3725,"item6":3340,"kills":3,"doubleKills":0,"tripleKills":0,"quadraKills":0,"pentaKills":0,"unrealKills":0,"largestKillingSpree":2,"deaths":9,"assists":13,"totalDamageDealt":144651,"totalDamageDealtToChampions":12983,"totalDamageTaken":37029,"largestCriticalStrike":437,"totalHeal":10748,"minionsKilled":80,"neutralMinionsKilled":54,"neutralMinionsKilledTeamJungle":52,"neutralMinionsKilledEnemyJungle":2,"goldEarned":11303,"goldSpent":10540,"combatPlayerScore":0,"objectivePlayerScore":0,"totalPlayerScore":0,"totalScoreRank":0,"magicDamageDealtToChampions":10988,"physicalDamageDealtToChampions":1674,"trueDamageDealtToChampions":321,"visionWardsBoughtInGame":2,"sightWardsBoughtInGame":2,"magicDamageDealt":93140,"physicalDamageDealt":21911,"trueDamageDealt":29600,"magicDamageTaken":9543,"physicalDamageTaken":27092,"trueDamageTaken":394,"firstBloodKill":false,"firstBloodAssist":false,"firstTowerKill":false,"firstTowerAssist":false,"firstInhibitorKill":false,"firstInhibitorAssist":false,"inhibitorKills":0,"towerKills":0,"wardsPlaced":10,"wardsKilled":0,"largestMultiKill":1,"killingSprees":1,"totalUnitsHealed":1,"totalTimeCrowdControlDealt":1267},"participantId":0,"runes":[{"runeId":5247,"rank":9},{"runeId":5290,"rank":9},{"runeId":5317,"rank":9},{"runeId":5357,"rank":3}]}],"participantIdentities":[{"participantId":0,"player":{"summonerId":30743211,"summonerName":"intinig","matchHistoryUri":"/v1/stats/player_history/EUW1/34720432","profileIcon":784}}]},{"matchId":2193192246,"region":"EUW","platformId":"EUW1","matchMode":"CLASSIC","matchType":"MATCHED_GAME","matchCreation":1436424468361,"matchDuration":2706,"queueType":"RANKED_SOLO_5x5","mapId":11,"season":"SEASON2015","matchVersion":"5.13.0.329","participants":[{"teamId":100,"spell1Id":14,"spell2Id":4,"championId":25,"highestAchievedSeasonTier":"SILVER","timeline":{"creepsPerMinDeltas":{"zeroToTen":8.3,"tenToTwenty":9.7,"twentyToThirty":7.4,"thirtyToEnd":4.733333333333333},"xpPerMinDeltas":{"zeroToTen":425.70000000000005,"tenToTwenty":597.4000000000001,"twentyToThirty":481.90000000000003,"thirtyToEnd":494.13333333333327},"goldPerMinDeltas":{"zeroToTen":244.0,"tenToTwenty":348.9,"twentyToThirty":358.20000000000005,"thirtyToEnd":452.26666666666665},"csDiffPerMinDeltas":{"zeroToTen":4.1,"tenToTwenty":4.7,"twentyToThirty":2.2,"thirtyToEnd":0.9333333333333335},"xpDiffPerMinDeltas":{"zeroToTen":51.5,"tenToTwenty":225.60000000000002,"twentyToThirty":37.50000000000006,"thirtyToEnd":202.99999999999997},"damageTakenPerMinDeltas":{"zeroToTen":238.7,"tenToTwenty":367.4,"twentyToThirty":1120.6,"thirtyToEnd":999.8666666666667},"damageTakenDiffPerMinDeltas":{"zeroToTen":-8.400000000000006,"tenToTwenty":-48.09999999999998,"twentyToThirty":603.3000000000001,"thirtyToEnd":413.59999999999997},"role":"SOLO","lane":"MIDDLE"},"masteries":[{"masteryId":4113,"rank":4},{"masteryId":4114,"rank":1},{"masteryId":4123,"rank":3},{"masteryId":4124,"rank":1},{"masteryId":4133,"rank":1},{"masteryId":4134,"rank":3},{"masteryId":4143,"rank":3},{"masteryId":4144,"rank":1},{"masteryId":4152,"rank":2},{"masteryId":4154,"rank":1},{"masteryId":4162,"rank":1},{"masteryId":4312,"rank":3},{"masteryId":4313,"rank":3},{"masteryId":4323,"rank":1},{"masteryId":4324,"rank":1},{"masteryId":4334,"rank":1}],"stats":{"winner":true,"champLevel":18,"item0":3116,"item1":3027,"item2":3157,"item3":3151,"item4":3020,"item5":1058,"item6":3340,"kills":7,"doubleKills":0,"tripleKills":0,"quadraKills":0,"pentaKills":0,"unrealKills":0,"largestKillingSpree":5,"deaths":1,"assists":15,"totalDamageDealt":234018,"totalDamageDealtToChampions":31814,"totalDamageTaken":32265,"largestCriticalStrike":0,"totalHeal":4426,"minionsKilled":325,"neutralMinionsKilled":14,"neutralMinionsKilledTeamJungle":13,"neutralMinionsKilledEnemyJungle":1,"goldEarned":16781,"goldSpent":14805,"combatPlayerScore":0,"objectivePlayerScore":0,"totalPlayerScore":0,"totalScoreRank":0,"magicDamageDealtToChampions":28972,"physicalDamageDealtToChampions":1327,"trueDamageDealtToChampions":1515,"visionWardsBoughtInGame":0,"sightWardsBoughtInGame":1,"magicDamageDealt":200651,"physicalDamageDealt":31497,"trueDamageDealt":1869,"magicDamageTaken":16628,"physicalDamageTaken":14541,"trueDamageTaken":1095,"firstBloodKill":false,"firstBloodAssist":false,"firstTowerKill":false,"firstTowerAssist":false,"firstInhibitorKill":true,"firstInhibitorAssist":false,"inhibitorKills":1,"towerKills":3,"wardsPlaced":11,"wardsKilled":2,"largestMultiKill":1,"killingSprees":2,"totalUnitsHealed":1,"totalTimeCrowdControlDealt":419},"participantId":0,"runes":[{"runeId":5273,"rank":9},{"runeId":5296,"rank":9},{"runeId":5316,"rank":9},{"runeId":5357,"rank":3}]}],"participantIdentities":[{"participantId":0,"player":{"summonerId":30743211,"summonerName":"intinig","matchHistoryUri":"/v1/stats/player_history/EUW1/34720432","profileIcon":784}}]},{"matchId":2192897448,"region":"EUW","platformId":"EUW1","matchMode":"CLASSIC","matchType":"MATCHED_GAME","matchCreation":1436428473676,"matchDuration":2098,"queueType":"RANKED_SOLO_5x5","mapId":11,"season":"SEASON2015","matchVersion":"5.13.0.329","participants":[{"teamId":200,"spell1Id":14,"spell2Id":4,"championId":25,"highestAchievedSeasonTier":"SILVER","timeline":{"creepsPerMinDeltas":{"zeroToTen":8.1,"tenToTwenty":7.7,"twentyToThirty":3.4},"xpPerMinDeltas":{"zeroToTen":504.7,"tenToTwenty":497.1,"twentyToThirty":464.5},"goldPerMinDeltas":{"zeroToTen":296.20000000000005,"tenToTwenty":403.4,"twentyToThirty":401.5},"csDiffPerMinDeltas":{"zeroToTen":1.4,"tenToTwenty":3.5,"twentyToThirty":-3.1999999999999997},"xpDiffPerMinDeltas":{"zeroToTen":107.49999999999997,"tenToTwenty":147.5,"twentyToThirty":-159.29999999999998},"damageTakenPerMinDeltas":{"zeroToTen":162.4,"tenToTwenty":678.6,"twentyToThirty":1278.9},"damageTakenDiffPerMinDeltas":{"zeroToTen":-209.59999999999997,"tenToTwenty":188.6,"twentyToThirty":412.7},"role":"SOLO","lane":"MIDDLE"},"masteries":[{"masteryId":4113,"rank":4},{"masteryId":4114,"rank":1},{"masteryId":4123,"rank":3},{"masteryId":4124,"rank":1},{"masteryId":4133,"rank":1},{"masteryId":4134,"rank":3},{"masteryId":4143,"rank":3},{"masteryId":4144,"rank":1},{"masteryId":4152,"rank":2},{"masteryId":4154,"rank":1},{"masteryId":4162,"rank":1},{"masteryId":4312,"rank":3},{"masteryId":4313,"rank":3},{"masteryId":4323,"rank":1},{"masteryId":4324,"rank":1},{"masteryId":4334,"rank":1}],"stats":{"winner":false,"champLevel":16,"item0":1026,"item1":3020,"item2":3157,"item3":1058,"item4":3027,"item5":3001,"item6":3340,"kills":8,"doubleKills":1,"tripleKills":0,"quadraKills":0,"pentaKills":0,"unrealKills":0,"largestKillingSpree":4,"deaths":5,"assists":11,"totalDamageDealt":147161,"totalDamageDealtToChampions":33031,"totalDamageTaken":28530,"largestCriticalStrike":0,"totalHeal":824,"minionsKilled":200,"neutralMinionsKilled":16,"neutralMinionsKilledTeamJungle":15,"neutralMinionsKilledEnemyJungle":1,"goldEarned":12878,"goldSpent":12050,"combatPlayerScore":0,"objectivePlayerScore":0,"totalPlayerScore":0,"totalScoreRank":0,"magicDamageDealtToChampions":30436,"physicalDamageDealtToChampions":1842,"trueDamageDealtToChampions":752,"visionWardsBoughtInGame":0,"sightWardsBoughtInGame":1,"magicDamageDealt":129533,"physicalDamageDealt":16875,"trueDamageDealt":752,"magicDamageTaken":14146,"physicalDamageTaken":14032,"trueDamageTaken":350,"firstBloodKill":false,"firstBloodAssist":false,"firstTowerKill":true,"firstTowerAssist":false,"firstInhibitorKill":false,"firstInhibitorAssist":false,"inhibitorKills":0,"towerKills":1,"wardsPlaced":5,"wardsKilled":0,"largestMultiKill":2,"killingSprees":2,"totalUnitsHealed":1,"totalTimeCrowdControlDealt":195},"participantId":0,"runes":[{"runeId":5273,"rank":9},{"runeId":5296,"rank":9},{"runeId":5316,"rank":9},{"runeId":5357,"rank":3}]}],"participantIdentities":[{"participantId":0,"player":{"summonerId":30743211,"summonerName":"intinig","matchHistoryUri":"/v1/stats/player_history/EUW1/34720432","profileIcon":784}}]},{"matchId":2203066686,"region":"EUW","platformId":"EUW1","matchMode":"CLASSIC","matchType":"MATCHED_GAME","matchCreation":1436985924307,"matchDuration":1995,"queueType":"RANKED_SOLO_5x5","mapId":11,"season":"SEASON2015","matchVersion":"5.13.0.329","participants":[{"teamId":200,"spell1Id":3,"spell2Id":4,"championId":25,"highestAchievedSeasonTier":"SILVER","timeline":{"creepsPerMinDeltas":{"zeroToTen":0.4,"tenToTwenty":1.1,"twentyToThirty":0.8},"xpPerMinDeltas":{"zeroToTen":276.5,"tenToTwenty":312.1,"twentyToThirty":317.4},"goldPerMinDeltas":{"zeroToTen":145.0,"tenToTwenty":308.7,"twentyToThirty":279.6},"csDiffPerMinDeltas":{"zeroToTen":0.8,"tenToTwenty":-0.7999999999999999,"twentyToThirty":-1.7000000000000006},"xpDiffPerMinDeltas":{"zeroToTen":31.90000000000002,"tenToTwenty":-12.050000000000011,"twentyToThirty":-53.49999999999997},"damageTakenPerMinDeltas":{"zeroToTen":113.0,"tenToTwenty":383.5,"twentyToThirty":379.29999999999995},"damageTakenDiffPerMinDeltas":{"zeroToTen":-144.9,"tenToTwenty":-230.89999999999998,"twentyToThirty":-403.75},"role":"DUO_SUPPORT","lane":"BOTTOM"},"masteries":[{"masteryId":4113,"rank":4},{"masteryId":4121,"rank":1},{"masteryId":4123,"rank":3},{"masteryId":4133,"rank":1},{"masteryId":4211,"rank":2},{"masteryId":4212,"rank":2},{"masteryId":4221,"rank":1},{"masteryId":4222,"rank":2},{"masteryId":4313,"rank":3},{"masteryId":4314,"rank":1},{"masteryId":4322,"rank":3},{"masteryId":4323,"rank":1},{"masteryId":4324,"rank":1},{"masteryId":4331,"rank":3},{"masteryId":4334,"rank":1},{"masteryId":4342,"rank":1}],"stats":{"winner":true,"champLevel":14,"item0":2004,"item1":3092,"item2":3157,"item3":2049,"item4":3117,"item5":3028,"item6":3364,"kills":1,"doubleKills":0,"tripleKills":0,"quadraKills":0,"pentaKills":0,"unrealKills":0,"largestKillingSpree":0,"deaths":2,"assists":20,"totalDamageDealt":29245,"totalDamageDealtToChampions":10165,"totalDamageTaken":12563,"largestCriticalStrike":0,"totalHeal":40,"minionsKilled":28,"neutralMinionsKilled":1,"neutralMinionsKilledTeamJungle":0,"neutralMinionsKilledEnemyJungle":1,"goldEarned":10171,"goldSpent":8570,"combatPlayerScore":0,"objectivePlayerScore":0,"totalPlayerScore":0,"totalScoreRank":0,"magicDamageDealtToChampions":8849,"physicalDamageDealtToChampions":1316,"trueDamageDealtToChampions":0,"visionWardsBoughtInGame":3,"sightWardsBoughtInGame":1,"magicDamageDealt":23205,"physicalDamageDealt":6040,"trueDamageDealt":0,"magicDamageTaken":5076,"physicalDamageTaken":7247,"trueDamageTaken":239,"firstBloodKill":false,"firstBloodAssist":false,"firstTowerKill":false,"firstTowerAssist":true,"firstInhibitorKill":false,"firstInhibitorAssist":false,"inhibitorKills":0,"towerKills":0,"wardsPlaced":27,"wardsKilled":5,"largestMultiKill":1,"killingSprees":0,"totalUnitsHealed":1,"totalTimeCrowdControlDealt":122},"participantId":0,"runes":[{"runeId":5297,"rank":9},{"runeId":5315,"rank":9},{"runeId":5347,"rank":3},{"runeId":5402,"rank":9}]}],"participantIdentities":[{"participantId":0,"player":{"summonerId":30743211,"summonerName":"intinig","matchHistoryUri":"/v1/stats/player_history/EUW1/34720432","profileIcon":784}}]}]}
|
1
|
+
{"matches":[{"matchId":2173849064,"region":"EUW","platformId":"EUW1","matchMode":"CLASSIC","matchType":"MATCHED_GAME","matchCreation":1435354692565,"matchDuration":1301,"queueType":"RANKED_SOLO_5x5","mapId":11,"season":"SEASON2015","matchVersion":"5.12.0.341","participants":[{"teamId":100,"spell1Id":11,"spell2Id":4,"championId":102,"highestAchievedSeasonTier":"SILVER","timeline":{"creepsPerMinDeltas":{"zeroToTen":0.7,"tenToTwenty":2.1},"xpPerMinDeltas":{"zeroToTen":378.6,"tenToTwenty":473.79999999999995},"goldPerMinDeltas":{"zeroToTen":273.20000000000005,"tenToTwenty":407.29999999999995},"damageTakenPerMinDeltas":{"zeroToTen":509.9,"tenToTwenty":829.4},"role":"NONE","lane":"JUNGLE"},"masteries":[{"masteryId":4112,"rank":4},{"masteryId":4114,"rank":1},{"masteryId":4122,"rank":3},{"masteryId":4132,"rank":1},{"masteryId":4211,"rank":2},{"masteryId":4212,"rank":2},{"masteryId":4214,"rank":2},{"masteryId":4221,"rank":1},{"masteryId":4222,"rank":3},{"masteryId":4231,"rank":1},{"masteryId":4232,"rank":1},{"masteryId":4241,"rank":3},{"masteryId":4242,"rank":1},{"masteryId":4251,"rank":1},{"masteryId":4252,"rank":3},{"masteryId":4262,"rank":1}],"stats":{"winner":true,"champLevel":13,"item0":3717,"item1":3153,"item2":2003,"item3":0,"item4":3111,"item5":0,"item6":3340,"kills":1,"doubleKills":0,"tripleKills":0,"quadraKills":0,"pentaKills":0,"unrealKills":0,"largestKillingSpree":0,"deaths":0,"assists":4,"totalDamageDealt":125772,"totalDamageDealtToChampions":2716,"totalDamageTaken":14956,"largestCriticalStrike":0,"totalHeal":1552,"minionsKilled":51,"neutralMinionsKilled":78,"neutralMinionsKilledTeamJungle":63,"neutralMinionsKilledEnemyJungle":15,"goldEarned":8439,"goldSpent":7285,"combatPlayerScore":0,"objectivePlayerScore":0,"totalPlayerScore":0,"totalScoreRank":0,"magicDamageDealtToChampions":1550,"physicalDamageDealtToChampions":990,"trueDamageDealtToChampions":176,"visionWardsBoughtInGame":1,"sightWardsBoughtInGame":2,"magicDamageDealt":80031,"physicalDamageDealt":37300,"trueDamageDealt":8441,"magicDamageTaken":1038,"physicalDamageTaken":13260,"trueDamageTaken":657,"firstBloodKill":false,"firstBloodAssist":false,"firstTowerKill":false,"firstTowerAssist":false,"firstInhibitorKill":false,"firstInhibitorAssist":false,"inhibitorKills":0,"towerKills":0,"wardsPlaced":9,"wardsKilled":1,"largestMultiKill":1,"killingSprees":0,"totalUnitsHealed":1,"totalTimeCrowdControlDealt":493},"participantId":0,"runes":[{"runeId":5245,"rank":9},{"runeId":5289,"rank":3},{"runeId":5295,"rank":6},{"runeId":5317,"rank":9},{"runeId":5337,"rank":3}]}],"participantIdentities":[{"participantId":0,"player":{"summonerId":30743211,"summonerName":"intinig","matchHistoryUri":"/v1/stats/player_history/EUW1/34720432","profileIcon":784}}]},{"matchId":2176278636,"region":"EUW","platformId":"EUW1","matchMode":"CLASSIC","matchType":"MATCHED_GAME","matchCreation":1435505379827,"matchDuration":2426,"queueType":"RANKED_SOLO_5x5","mapId":11,"season":"SEASON2015","matchVersion":"5.12.0.341","participants":[{"teamId":200,"spell1Id":3,"spell2Id":4,"championId":25,"highestAchievedSeasonTier":"SILVER","timeline":{"creepsPerMinDeltas":{"zeroToTen":0.6,"tenToTwenty":1.4,"twentyToThirty":1.2999999999999998,"thirtyToEnd":1.7},"xpPerMinDeltas":{"zeroToTen":283.0,"tenToTwenty":348.4,"twentyToThirty":276.7,"thirtyToEnd":594.2},"goldPerMinDeltas":{"zeroToTen":159.5,"tenToTwenty":308.4,"twentyToThirty":221.9,"thirtyToEnd":394.8},"csDiffPerMinDeltas":{"zeroToTen":-0.9499999999999997,"tenToTwenty":0.30000000000000004,"twentyToThirty":-0.6500000000000004,"thirtyToEnd":0.5500000000000003},"xpDiffPerMinDeltas":{"zeroToTen":-6.949999999999989,"tenToTwenty":-26.25,"twentyToThirty":-208.29999999999995,"thirtyToEnd":307.30000000000007},"damageTakenPerMinDeltas":{"zeroToTen":253.0,"tenToTwenty":569.2,"twentyToThirty":580.6,"thirtyToEnd":594.9},"damageTakenDiffPerMinDeltas":{"zeroToTen":-99.05000000000001,"tenToTwenty":-241.75000000000006,"twentyToThirty":15.800000000000011,"thirtyToEnd":-373.5500000000001},"role":"DUO_SUPPORT","lane":"BOTTOM"},"masteries":[{"masteryId":4113,"rank":4},{"masteryId":4121,"rank":1},{"masteryId":4123,"rank":3},{"masteryId":4133,"rank":1},{"masteryId":4211,"rank":2},{"masteryId":4212,"rank":2},{"masteryId":4221,"rank":1},{"masteryId":4222,"rank":2},{"masteryId":4313,"rank":3},{"masteryId":4314,"rank":1},{"masteryId":4322,"rank":3},{"masteryId":4323,"rank":1},{"masteryId":4324,"rank":1},{"masteryId":4331,"rank":3},{"masteryId":4334,"rank":1},{"masteryId":4342,"rank":1}],"stats":{"winner":true,"champLevel":16,"item0":3028,"item1":3092,"item2":3157,"item3":2049,"item4":0,"item5":3275,"item6":3364,"kills":2,"doubleKills":0,"tripleKills":0,"quadraKills":0,"pentaKills":0,"unrealKills":0,"largestKillingSpree":2,"deaths":7,"assists":16,"totalDamageDealt":62839,"totalDamageDealtToChampions":21093,"totalDamageTaken":20172,"largestCriticalStrike":0,"totalHeal":1127,"minionsKilled":52,"neutralMinionsKilled":0,"neutralMinionsKilledTeamJungle":0,"neutralMinionsKilledEnemyJungle":0,"goldEarned":11794,"goldSpent":9885,"combatPlayerScore":0,"objectivePlayerScore":0,"totalPlayerScore":0,"totalScoreRank":0,"magicDamageDealtToChampions":19457,"physicalDamageDealtToChampions":1635,"trueDamageDealtToChampions":0,"visionWardsBoughtInGame":4,"sightWardsBoughtInGame":0,"magicDamageDealt":55819,"physicalDamageDealt":7020,"trueDamageDealt":0,"magicDamageTaken":6118,"physicalDamageTaken":13110,"trueDamageTaken":943,"firstBloodKill":false,"firstBloodAssist":false,"firstTowerKill":false,"firstTowerAssist":false,"firstInhibitorKill":false,"firstInhibitorAssist":false,"inhibitorKills":0,"towerKills":0,"wardsPlaced":24,"wardsKilled":3,"largestMultiKill":1,"killingSprees":1,"totalUnitsHealed":1,"totalTimeCrowdControlDealt":193},"participantId":0,"runes":[{"runeId":5297,"rank":9},{"runeId":5315,"rank":9},{"runeId":5347,"rank":3},{"runeId":5402,"rank":9}]}],"participantIdentities":[{"participantId":0,"player":{"summonerId":30743211,"summonerName":"intinig","matchHistoryUri":"/v1/stats/player_history/EUW1/34720432","profileIcon":784}}]},{"matchId":2177024488,"region":"EUW","platformId":"EUW1","matchMode":"CLASSIC","matchType":"MATCHED_GAME","matchCreation":1435521657303,"matchDuration":2896,"queueType":"RANKED_SOLO_5x5","mapId":11,"season":"SEASON2015","matchVersion":"5.12.0.341","participants":[{"teamId":100,"spell1Id":7,"spell2Id":4,"championId":18,"highestAchievedSeasonTier":"SILVER","timeline":{"creepsPerMinDeltas":{"zeroToTen":4.699999999999999,"tenToTwenty":5.6,"twentyToThirty":4.9,"thirtyToEnd":2.8666666666666667},"xpPerMinDeltas":{"zeroToTen":254.9,"tenToTwenty":360.4,"twentyToThirty":479.0,"thirtyToEnd":399.5333333333333},"goldPerMinDeltas":{"zeroToTen":191.89999999999998,"tenToTwenty":275.6,"twentyToThirty":415.9,"thirtyToEnd":305.6666666666667},"csDiffPerMinDeltas":{"zeroToTen":-0.9000000000000001,"tenToTwenty":-0.9000000000000001,"twentyToThirty":-0.7,"thirtyToEnd":-3.1666666666666665},"xpDiffPerMinDeltas":{"zeroToTen":-58.0,"tenToTwenty":47.50000000000006,"twentyToThirty":67.75,"thirtyToEnd":-124.59999999999998},"damageTakenPerMinDeltas":{"zeroToTen":305.29999999999995,"tenToTwenty":546.8,"twentyToThirty":667.8,"thirtyToEnd":920.4},"damageTakenDiffPerMinDeltas":{"zeroToTen":89.39999999999998,"tenToTwenty":-146.7,"twentyToThirty":58.34999999999991,"thirtyToEnd":-25.333333333333332},"role":"DUO_CARRY","lane":"BOTTOM"},"masteries":[{"masteryId":4112,"rank":4},{"masteryId":4114,"rank":1},{"masteryId":4122,"rank":3},{"masteryId":4124,"rank":1},{"masteryId":4132,"rank":1},{"masteryId":4134,"rank":3},{"masteryId":4142,"rank":2},{"masteryId":4144,"rank":1},{"masteryId":4151,"rank":1},{"masteryId":4152,"rank":3},{"masteryId":4162,"rank":1},{"masteryId":4211,"rank":2},{"masteryId":4212,"rank":2},{"masteryId":4221,"rank":1},{"masteryId":4222,"rank":3},{"masteryId":4232,"rank":1}],"stats":{"winner":true,"champLevel":18,"item0":3072,"item1":3031,"item2":3087,"item3":1031,"item4":3035,"item5":3006,"item6":3363,"kills":6,"doubleKills":0,"tripleKills":0,"quadraKills":0,"pentaKills":0,"unrealKills":0,"largestKillingSpree":3,"deaths":10,"assists":16,"totalDamageDealt":289124,"totalDamageDealtToChampions":27484,"totalDamageTaken":32079,"largestCriticalStrike":1026,"totalHeal":5586,"minionsKilled":242,"neutralMinionsKilled":34,"neutralMinionsKilledTeamJungle":31,"neutralMinionsKilledEnemyJungle":3,"goldEarned":17609,"goldSpent":15330,"combatPlayerScore":0,"objectivePlayerScore":0,"totalPlayerScore":0,"totalScoreRank":0,"magicDamageDealtToChampions":6138,"physicalDamageDealtToChampions":21345,"trueDamageDealtToChampions":0,"visionWardsBoughtInGame":1,"sightWardsBoughtInGame":5,"magicDamageDealt":62202,"physicalDamageDealt":226106,"trueDamageDealt":816,"magicDamageTaken":8728,"physicalDamageTaken":23147,"trueDamageTaken":204,"firstBloodKill":false,"firstBloodAssist":false,"firstTowerKill":false,"firstTowerAssist":false,"firstInhibitorKill":false,"firstInhibitorAssist":false,"inhibitorKills":0,"towerKills":5,"wardsPlaced":15,"wardsKilled":2,"largestMultiKill":1,"killingSprees":2,"totalUnitsHealed":4,"totalTimeCrowdControlDealt":391},"participantId":0,"runes":[{"runeId":5245,"rank":9},{"runeId":5289,"rank":9},{"runeId":5317,"rank":9},{"runeId":5337,"rank":3}]}],"participantIdentities":[{"participantId":0,"player":{"summonerId":30743211,"summonerName":"intinig","matchHistoryUri":"/v1/stats/player_history/EUW1/34720432","profileIcon":784}}]},{"matchId":2177985555,"region":"EUW","platformId":"EUW1","matchMode":"CLASSIC","matchType":"MATCHED_GAME","matchCreation":1435597843012,"matchDuration":2575,"queueType":"RANKED_SOLO_5x5","mapId":11,"season":"SEASON2015","matchVersion":"5.12.0.341","participants":[{"teamId":100,"spell1Id":11,"spell2Id":4,"championId":79,"highestAchievedSeasonTier":"SILVER","timeline":{"creepsPerMinDeltas":{"zeroToTen":0.2,"tenToTwenty":1.7000000000000002,"twentyToThirty":0.7,"thirtyToEnd":1.1},"xpPerMinDeltas":{"zeroToTen":251.5,"tenToTwenty":403.0,"twentyToThirty":381.8,"thirtyToEnd":262.0},"goldPerMinDeltas":{"zeroToTen":210.6,"tenToTwenty":322.0,"twentyToThirty":236.0,"thirtyToEnd":189.7},"csDiffPerMinDeltas":{"zeroToTen":0.1,"tenToTwenty":0.7,"twentyToThirty":5.551115123125783E-17,"thirtyToEnd":-0.7},"xpDiffPerMinDeltas":{"zeroToTen":-0.09999999999999432,"tenToTwenty":-62.5,"twentyToThirty":-58.69999999999999,"thirtyToEnd":-131.8},"damageTakenPerMinDeltas":{"zeroToTen":544.9,"tenToTwenty":814.5,"twentyToThirty":1003.2,"thirtyToEnd":766.6},"damageTakenDiffPerMinDeltas":{"zeroToTen":171.79999999999998,"tenToTwenty":242.00000000000003,"twentyToThirty":520.7,"thirtyToEnd":361.1},"role":"NONE","lane":"JUNGLE"},"masteries":[{"masteryId":4111,"rank":1},{"masteryId":4113,"rank":4},{"masteryId":4122,"rank":3},{"masteryId":4123,"rank":3},{"masteryId":4132,"rank":1},{"masteryId":4133,"rank":1},{"masteryId":4134,"rank":3},{"masteryId":4144,"rank":1},{"masteryId":4152,"rank":3},{"masteryId":4162,"rank":1},{"masteryId":4211,"rank":2},{"masteryId":4214,"rank":2},{"masteryId":4221,"rank":1},{"masteryId":4222,"rank":3},{"masteryId":4232,"rank":1}],"stats":{"winner":false,"champLevel":15,"item0":3725,"item1":3110,"item2":3190,"item3":2049,"item4":3047,"item5":0,"item6":3364,"kills":0,"doubleKills":0,"tripleKills":0,"quadraKills":0,"pentaKills":0,"unrealKills":0,"largestKillingSpree":0,"deaths":7,"assists":7,"totalDamageDealt":152520,"totalDamageDealtToChampions":9218,"totalDamageTaken":35296,"largestCriticalStrike":412,"totalHeal":6182,"minionsKilled":38,"neutralMinionsKilled":92,"neutralMinionsKilledTeamJungle":89,"neutralMinionsKilledEnemyJungle":3,"goldEarned":10640,"goldSpent":10400,"combatPlayerScore":0,"objectivePlayerScore":0,"totalPlayerScore":0,"totalScoreRank":0,"magicDamageDealtToChampions":7852,"physicalDamageDealtToChampions":1193,"trueDamageDealtToChampions":172,"visionWardsBoughtInGame":2,"sightWardsBoughtInGame":4,"magicDamageDealt":95503,"physicalDamageDealt":30432,"trueDamageDealt":26584,"magicDamageTaken":8718,"physicalDamageTaken":26231,"trueDamageTaken":346,"firstBloodKill":false,"firstBloodAssist":false,"firstTowerKill":false,"firstTowerAssist":false,"firstInhibitorKill":false,"firstInhibitorAssist":false,"inhibitorKills":0,"towerKills":0,"wardsPlaced":23,"wardsKilled":6,"largestMultiKill":0,"killingSprees":0,"totalUnitsHealed":1,"totalTimeCrowdControlDealt":1267},"participantId":0,"runes":[{"runeId":5247,"rank":9},{"runeId":5290,"rank":9},{"runeId":5317,"rank":9},{"runeId":5357,"rank":3}]}],"participantIdentities":[{"participantId":0,"player":{"summonerId":30743211,"summonerName":"intinig","matchHistoryUri":"/v1/stats/player_history/EUW1/34720432","profileIcon":784}}]},{"matchId":2187542528,"region":"EUW","platformId":"EUW1","matchMode":"CLASSIC","matchType":"MATCHED_GAME","matchCreation":1436119345411,"matchDuration":2334,"queueType":"RANKED_SOLO_5x5","mapId":11,"season":"SEASON2015","matchVersion":"5.12.0.348","participants":[{"teamId":100,"spell1Id":3,"spell2Id":4,"championId":53,"highestAchievedSeasonTier":"SILVER","timeline":{"creepsPerMinDeltas":{"zeroToTen":1.2,"tenToTwenty":1.3,"twentyToThirty":2.5,"thirtyToEnd":1.0},"xpPerMinDeltas":{"zeroToTen":320.29999999999995,"tenToTwenty":246.2,"twentyToThirty":436.79999999999995,"thirtyToEnd":218.6},"goldPerMinDeltas":{"zeroToTen":161.2,"tenToTwenty":160.4,"twentyToThirty":312.79999999999995,"thirtyToEnd":206.8},"damageTakenPerMinDeltas":{"zeroToTen":317.6,"tenToTwenty":1002.5,"twentyToThirty":747.7,"thirtyToEnd":1744.6},"role":"SOLO","lane":"BOTTOM"},"masteries":[{"masteryId":4211,"rank":2},{"masteryId":4213,"rank":2},{"masteryId":4221,"rank":1},{"masteryId":4222,"rank":3},{"masteryId":4231,"rank":1},{"masteryId":4232,"rank":1},{"masteryId":4233,"rank":3},{"masteryId":4241,"rank":3},{"masteryId":4313,"rank":3},{"masteryId":4314,"rank":1},{"masteryId":4322,"rank":2},{"masteryId":4323,"rank":1},{"masteryId":4324,"rank":1},{"masteryId":4331,"rank":3},{"masteryId":4334,"rank":1},{"masteryId":4341,"rank":1},{"masteryId":4342,"rank":1}],"stats":{"winner":false,"champLevel":14,"item0":1033,"item1":3401,"item2":1028,"item3":2049,"item4":3110,"item5":3270,"item6":3364,"kills":2,"doubleKills":0,"tripleKills":0,"quadraKills":0,"pentaKills":0,"unrealKills":0,"largestKillingSpree":0,"deaths":11,"assists":11,"totalDamageDealt":59273,"totalDamageDealtToChampions":11262,"totalDamageTaken":35205,"largestCriticalStrike":0,"totalHeal":3786,"minionsKilled":62,"neutralMinionsKilled":0,"neutralMinionsKilledTeamJungle":0,"neutralMinionsKilledEnemyJungle":0,"goldEarned":9022,"goldSpent":8670,"combatPlayerScore":0,"objectivePlayerScore":0,"totalPlayerScore":0,"totalScoreRank":0,"magicDamageDealtToChampions":8292,"physicalDamageDealtToChampions":2970,"trueDamageDealtToChampions":0,"visionWardsBoughtInGame":3,"sightWardsBoughtInGame":1,"magicDamageDealt":45425,"physicalDamageDealt":10698,"trueDamageDealt":3148,"magicDamageTaken":12917,"physicalDamageTaken":19796,"trueDamageTaken":2492,"firstBloodKill":false,"firstBloodAssist":false,"firstTowerKill":false,"firstTowerAssist":false,"firstInhibitorKill":false,"firstInhibitorAssist":false,"inhibitorKills":0,"towerKills":0,"wardsPlaced":31,"wardsKilled":4,"largestMultiKill":1,"killingSprees":0,"totalUnitsHealed":4,"totalTimeCrowdControlDealt":1028},"participantId":0,"runes":[{"runeId":5257,"rank":9},{"runeId":5289,"rank":9},{"runeId":5315,"rank":6},{"runeId":5317,"rank":3},{"runeId":5345,"rank":2},{"runeId":5347,"rank":1}]}],"participantIdentities":[{"participantId":0,"player":{"summonerId":30743211,"summonerName":"intinig","matchHistoryUri":"/v1/stats/player_history/EUW1/34720432","profileIcon":784}}]},{"matchId":2188951682,"region":"EUW","platformId":"EUW1","matchMode":"CLASSIC","matchType":"MATCHED_GAME","matchCreation":1436201953506,"matchDuration":2454,"queueType":"RANKED_SOLO_5x5","mapId":11,"season":"SEASON2015","matchVersion":"5.12.0.348","participants":[{"teamId":100,"spell1Id":14,"spell2Id":4,"championId":412,"highestAchievedSeasonTier":"SILVER","timeline":{"creepsPerMinDeltas":{"zeroToTen":0.6000000000000001,"tenToTwenty":1.0,"twentyToThirty":1.0,"thirtyToEnd":0.6},"xpPerMinDeltas":{"zeroToTen":253.6,"tenToTwenty":228.60000000000002,"twentyToThirty":426.59999999999997,"thirtyToEnd":564.1},"goldPerMinDeltas":{"zeroToTen":167.10000000000002,"tenToTwenty":230.7,"twentyToThirty":247.7,"thirtyToEnd":358.6},"damageTakenPerMinDeltas":{"zeroToTen":253.60000000000002,"tenToTwenty":541.5,"twentyToThirty":1474.2,"thirtyToEnd":1170.6},"role":"DUO_SUPPORT","lane":"BOTTOM"},"masteries":[{"masteryId":4211,"rank":2},{"masteryId":4213,"rank":2},{"masteryId":4221,"rank":1},{"masteryId":4222,"rank":3},{"masteryId":4231,"rank":1},{"masteryId":4232,"rank":1},{"masteryId":4233,"rank":3},{"masteryId":4241,"rank":3},{"masteryId":4313,"rank":3},{"masteryId":4314,"rank":1},{"masteryId":4322,"rank":2},{"masteryId":4323,"rank":1},{"masteryId":4324,"rank":1},{"masteryId":4331,"rank":3},{"masteryId":4334,"rank":1},{"masteryId":4341,"rank":1},{"masteryId":4342,"rank":1}],"stats":{"winner":true,"champLevel":16,"item0":3270,"item1":3401,"item2":3190,"item3":2049,"item4":3024,"item5":3082,"item6":3364,"kills":1,"doubleKills":0,"tripleKills":0,"quadraKills":0,"pentaKills":0,"unrealKills":0,"largestKillingSpree":0,"deaths":8,"assists":24,"totalDamageDealt":38435,"totalDamageDealtToChampions":14327,"totalDamageTaken":34416,"largestCriticalStrike":0,"totalHeal":7562,"minionsKilled":32,"neutralMinionsKilled":0,"neutralMinionsKilledTeamJungle":0,"neutralMinionsKilledEnemyJungle":0,"goldEarned":10968,"goldSpent":9800,"combatPlayerScore":0,"objectivePlayerScore":0,"totalPlayerScore":0,"totalScoreRank":0,"magicDamageDealtToChampions":11251,"physicalDamageDealtToChampions":1945,"trueDamageDealtToChampions":1130,"visionWardsBoughtInGame":3,"sightWardsBoughtInGame":0,"magicDamageDealt":23917,"physicalDamageDealt":13388,"trueDamageDealt":1130,"magicDamageTaken":15976,"physicalDamageTaken":15399,"trueDamageTaken":3041,"firstBloodKill":false,"firstBloodAssist":false,"firstTowerKill":true,"firstTowerAssist":false,"firstInhibitorKill":false,"firstInhibitorAssist":true,"inhibitorKills":0,"towerKills":1,"wardsPlaced":30,"wardsKilled":2,"largestMultiKill":1,"killingSprees":0,"totalUnitsHealed":4,"totalTimeCrowdControlDealt":217},"participantId":0,"runes":[{"runeId":5245,"rank":9},{"runeId":5289,"rank":6},{"runeId":5301,"rank":3},{"runeId":5315,"rank":9},{"runeId":5347,"rank":3}]}],"participantIdentities":[{"participantId":0,"player":{"summonerId":30743211,"summonerName":"intinig","matchHistoryUri":"/v1/stats/player_history/EUW1/34720432","profileIcon":784}}]},{"matchId":2190847923,"region":"EUW","platformId":"EUW1","matchMode":"CLASSIC","matchType":"MATCHED_GAME","matchCreation":1436306450891,"matchDuration":2120,"queueType":"RANKED_SOLO_5x5","mapId":11,"season":"SEASON2015","matchVersion":"5.12.0.348","participants":[{"teamId":200,"spell1Id":11,"spell2Id":4,"championId":79,"highestAchievedSeasonTier":"SILVER","timeline":{"creepsPerMinDeltas":{"zeroToTen":0.2,"tenToTwenty":3.0,"twentyToThirty":2.7,"thirtyToEnd":4.2},"xpPerMinDeltas":{"zeroToTen":251.8,"tenToTwenty":427.0,"twentyToThirty":473.6,"thirtyToEnd":555.0},"goldPerMinDeltas":{"zeroToTen":234.7,"tenToTwenty":350.8,"twentyToThirty":328.4,"thirtyToEnd":300.8},"csDiffPerMinDeltas":{"zeroToTen":-0.2,"tenToTwenty":1.3000000000000003,"twentyToThirty":0.8999999999999999,"thirtyToEnd":1.0},"xpDiffPerMinDeltas":{"zeroToTen":-45.499999999999986,"tenToTwenty":83.99999999999997,"twentyToThirty":-34.79999999999998,"thirtyToEnd":50.0},"damageTakenPerMinDeltas":{"zeroToTen":638.6,"tenToTwenty":860.6999999999999,"twentyToThirty":1265.0,"thirtyToEnd":1877.2},"damageTakenDiffPerMinDeltas":{"zeroToTen":-20.999999999999943,"tenToTwenty":159.59999999999997,"twentyToThirty":7.7999999999999545,"thirtyToEnd":434.20000000000005},"role":"NONE","lane":"JUNGLE"},"masteries":[{"masteryId":4113,"rank":4},{"masteryId":4114,"rank":1},{"masteryId":4123,"rank":3},{"masteryId":4133,"rank":1},{"masteryId":4211,"rank":2},{"masteryId":4214,"rank":2},{"masteryId":4221,"rank":1},{"masteryId":4222,"rank":3},{"masteryId":4231,"rank":1},{"masteryId":4232,"rank":1},{"masteryId":4233,"rank":2},{"masteryId":4241,"rank":3},{"masteryId":4242,"rank":1},{"masteryId":4251,"rank":1},{"masteryId":4252,"rank":3},{"masteryId":4262,"rank":1}],"stats":{"winner":false,"champLevel":16,"item0":3110,"item1":3065,"item2":3270,"item3":2043,"item4":1031,"item5":3725,"item6":3340,"kills":3,"doubleKills":0,"tripleKills":0,"quadraKills":0,"pentaKills":0,"unrealKills":0,"largestKillingSpree":2,"deaths":9,"assists":13,"totalDamageDealt":144651,"totalDamageDealtToChampions":12983,"totalDamageTaken":37029,"largestCriticalStrike":437,"totalHeal":10748,"minionsKilled":80,"neutralMinionsKilled":54,"neutralMinionsKilledTeamJungle":52,"neutralMinionsKilledEnemyJungle":2,"goldEarned":11303,"goldSpent":10540,"combatPlayerScore":0,"objectivePlayerScore":0,"totalPlayerScore":0,"totalScoreRank":0,"magicDamageDealtToChampions":10988,"physicalDamageDealtToChampions":1674,"trueDamageDealtToChampions":321,"visionWardsBoughtInGame":2,"sightWardsBoughtInGame":2,"magicDamageDealt":93140,"physicalDamageDealt":21911,"trueDamageDealt":29600,"magicDamageTaken":9543,"physicalDamageTaken":27092,"trueDamageTaken":394,"firstBloodKill":false,"firstBloodAssist":false,"firstTowerKill":false,"firstTowerAssist":false,"firstInhibitorKill":false,"firstInhibitorAssist":false,"inhibitorKills":0,"towerKills":0,"wardsPlaced":10,"wardsKilled":0,"largestMultiKill":1,"killingSprees":1,"totalUnitsHealed":1,"totalTimeCrowdControlDealt":1267},"participantId":0,"runes":[{"runeId":5247,"rank":9},{"runeId":5290,"rank":9},{"runeId":5317,"rank":9},{"runeId":5357,"rank":3}]}],"participantIdentities":[{"participantId":0,"player":{"summonerId":30743211,"summonerName":"intinig","matchHistoryUri":"/v1/stats/player_history/EUW1/34720432","profileIcon":784}}]},{"matchId":2193192246,"region":"EUW","platformId":"EUW1","matchMode":"CLASSIC","matchType":"MATCHED_GAME","matchCreation":1436424468361,"matchDuration":2706,"queueType":"RANKED_SOLO_5x5","mapId":11,"season":"SEASON2015","matchVersion":"5.13.0.329","participants":[{"teamId":100,"spell1Id":14,"spell2Id":4,"championId":25,"highestAchievedSeasonTier":"SILVER","timeline":{"creepsPerMinDeltas":{"zeroToTen":8.3,"tenToTwenty":9.7,"twentyToThirty":7.4,"thirtyToEnd":4.733333333333333},"xpPerMinDeltas":{"zeroToTen":425.70000000000005,"tenToTwenty":597.4000000000001,"twentyToThirty":481.90000000000003,"thirtyToEnd":494.13333333333327},"goldPerMinDeltas":{"zeroToTen":244.0,"tenToTwenty":348.9,"twentyToThirty":358.20000000000005,"thirtyToEnd":452.26666666666665},"csDiffPerMinDeltas":{"zeroToTen":4.1,"tenToTwenty":4.7,"twentyToThirty":2.2,"thirtyToEnd":0.9333333333333335},"xpDiffPerMinDeltas":{"zeroToTen":51.5,"tenToTwenty":225.60000000000002,"twentyToThirty":37.50000000000006,"thirtyToEnd":202.99999999999997},"damageTakenPerMinDeltas":{"zeroToTen":238.7,"tenToTwenty":367.4,"twentyToThirty":1120.6,"thirtyToEnd":999.8666666666667},"damageTakenDiffPerMinDeltas":{"zeroToTen":-8.400000000000006,"tenToTwenty":-48.09999999999998,"twentyToThirty":603.3000000000001,"thirtyToEnd":413.59999999999997},"role":"SOLO","lane":"MIDDLE"},"masteries":[{"masteryId":4113,"rank":4},{"masteryId":4114,"rank":1},{"masteryId":4123,"rank":3},{"masteryId":4124,"rank":1},{"masteryId":4133,"rank":1},{"masteryId":4134,"rank":3},{"masteryId":4143,"rank":3},{"masteryId":4144,"rank":1},{"masteryId":4152,"rank":2},{"masteryId":4154,"rank":1},{"masteryId":4162,"rank":1},{"masteryId":4312,"rank":3},{"masteryId":4313,"rank":3},{"masteryId":4323,"rank":1},{"masteryId":4324,"rank":1},{"masteryId":4334,"rank":1}],"stats":{"winner":true,"champLevel":18,"item0":3116,"item1":3027,"item2":3157,"item3":3151,"item4":3020,"item5":1058,"item6":3340,"kills":7,"doubleKills":0,"tripleKills":0,"quadraKills":0,"pentaKills":0,"unrealKills":0,"largestKillingSpree":5,"deaths":1,"assists":15,"totalDamageDealt":234018,"totalDamageDealtToChampions":31814,"totalDamageTaken":32265,"largestCriticalStrike":0,"totalHeal":4426,"minionsKilled":325,"neutralMinionsKilled":14,"neutralMinionsKilledTeamJungle":13,"neutralMinionsKilledEnemyJungle":1,"goldEarned":16781,"goldSpent":14805,"combatPlayerScore":0,"objectivePlayerScore":0,"totalPlayerScore":0,"totalScoreRank":0,"magicDamageDealtToChampions":28972,"physicalDamageDealtToChampions":1327,"trueDamageDealtToChampions":1515,"visionWardsBoughtInGame":0,"sightWardsBoughtInGame":1,"magicDamageDealt":200651,"physicalDamageDealt":31497,"trueDamageDealt":1869,"magicDamageTaken":16628,"physicalDamageTaken":14541,"trueDamageTaken":1095,"firstBloodKill":false,"firstBloodAssist":false,"firstTowerKill":false,"firstTowerAssist":false,"firstInhibitorKill":true,"firstInhibitorAssist":false,"inhibitorKills":1,"towerKills":3,"wardsPlaced":11,"wardsKilled":2,"largestMultiKill":1,"killingSprees":2,"totalUnitsHealed":1,"totalTimeCrowdControlDealt":419},"participantId":0,"runes":[{"runeId":5273,"rank":9},{"runeId":5296,"rank":9},{"runeId":5316,"rank":9},{"runeId":5357,"rank":3}]}],"participantIdentities":[{"participantId":0,"player":{"summonerId":30743211,"summonerName":"intinig","matchHistoryUri":"/v1/stats/player_history/EUW1/34720432","profileIcon":784}}]},{"matchId":2192897448,"region":"EUW","platformId":"EUW1","matchMode":"CLASSIC","matchType":"MATCHED_GAME","matchCreation":1436428473676,"matchDuration":2098,"queueType":"RANKED_SOLO_5x5","mapId":11,"season":"SEASON2015","matchVersion":"5.13.0.329","participants":[{"teamId":200,"spell1Id":14,"spell2Id":4,"championId":25,"highestAchievedSeasonTier":"SILVER","timeline":{"creepsPerMinDeltas":{"zeroToTen":8.1,"tenToTwenty":7.7,"twentyToThirty":3.4},"xpPerMinDeltas":{"zeroToTen":504.7,"tenToTwenty":497.1,"twentyToThirty":464.5},"goldPerMinDeltas":{"zeroToTen":296.20000000000005,"tenToTwenty":403.4,"twentyToThirty":401.5},"csDiffPerMinDeltas":{"zeroToTen":1.4,"tenToTwenty":3.5,"twentyToThirty":-3.1999999999999997},"xpDiffPerMinDeltas":{"zeroToTen":107.49999999999997,"tenToTwenty":147.5,"twentyToThirty":-159.29999999999998},"damageTakenPerMinDeltas":{"zeroToTen":162.4,"tenToTwenty":678.6,"twentyToThirty":1278.9},"damageTakenDiffPerMinDeltas":{"zeroToTen":-209.59999999999997,"tenToTwenty":188.6,"twentyToThirty":412.7},"role":"SOLO","lane":"MIDDLE"},"masteries":[{"masteryId":4113,"rank":4},{"masteryId":4114,"rank":1},{"masteryId":4123,"rank":3},{"masteryId":4124,"rank":1},{"masteryId":4133,"rank":1},{"masteryId":4134,"rank":3},{"masteryId":4143,"rank":3},{"masteryId":4144,"rank":1},{"masteryId":4152,"rank":2},{"masteryId":4154,"rank":1},{"masteryId":4162,"rank":1},{"masteryId":4312,"rank":3},{"masteryId":4313,"rank":3},{"masteryId":4323,"rank":1},{"masteryId":4324,"rank":1},{"masteryId":4334,"rank":1}],"stats":{"winner":false,"champLevel":16,"item0":1026,"item1":3020,"item2":3157,"item3":1058,"item4":3027,"item5":3001,"item6":3340,"kills":8,"doubleKills":1,"tripleKills":0,"quadraKills":0,"pentaKills":0,"unrealKills":0,"largestKillingSpree":4,"deaths":5,"assists":11,"totalDamageDealt":147161,"totalDamageDealtToChampions":33031,"totalDamageTaken":28530,"largestCriticalStrike":0,"totalHeal":824,"minionsKilled":200,"neutralMinionsKilled":16,"neutralMinionsKilledTeamJungle":15,"neutralMinionsKilledEnemyJungle":1,"goldEarned":12878,"goldSpent":12050,"combatPlayerScore":0,"objectivePlayerScore":0,"totalPlayerScore":0,"totalScoreRank":0,"magicDamageDealtToChampions":30436,"physicalDamageDealtToChampions":1842,"trueDamageDealtToChampions":752,"visionWardsBoughtInGame":0,"sightWardsBoughtInGame":1,"magicDamageDealt":129533,"physicalDamageDealt":16875,"trueDamageDealt":752,"magicDamageTaken":14146,"physicalDamageTaken":14032,"trueDamageTaken":350,"firstBloodKill":false,"firstBloodAssist":false,"firstTowerKill":true,"firstTowerAssist":false,"firstInhibitorKill":false,"firstInhibitorAssist":false,"inhibitorKills":0,"towerKills":1,"wardsPlaced":5,"wardsKilled":0,"largestMultiKill":2,"killingSprees":2,"totalUnitsHealed":1,"totalTimeCrowdControlDealt":195},"participantId":0,"runes":[{"runeId":5273,"rank":9},{"runeId":5296,"rank":9},{"runeId":5316,"rank":9},{"runeId":5357,"rank":3}]}],"participantIdentities":[{"participantId":0,"player":{"summonerId":30743211,"summonerName":"intinig","matchHistoryUri":"/v1/stats/player_history/EUW1/34720432","profileIcon":784}}]},{"matchId":2203066686,"region":"EUW","platformId":"EUW1","matchMode":"CLASSIC","matchType":"MATCHED_GAME","matchCreation":1436985924307,"matchDuration":1995,"queueType":"RANKED_SOLO_5x5","mapId":11,"season":"SEASON2015","matchVersion":"5.13.0.329","participants":[{"teamId":200,"spell1Id":3,"spell2Id":4,"championId":25,"highestAchievedSeasonTier":"SILVER","timeline":{"creepsPerMinDeltas":{"zeroToTen":0.4,"tenToTwenty":1.1,"twentyToThirty":0.8},"xpPerMinDeltas":{"zeroToTen":276.5,"tenToTwenty":312.1,"twentyToThirty":317.4},"goldPerMinDeltas":{"zeroToTen":145.0,"tenToTwenty":308.7,"twentyToThirty":279.6},"csDiffPerMinDeltas":{"zeroToTen":0.8,"tenToTwenty":-0.7999999999999999,"twentyToThirty":-1.7000000000000006},"xpDiffPerMinDeltas":{"zeroToTen":31.90000000000002,"tenToTwenty":-12.050000000000011,"twentyToThirty":-53.49999999999997},"damageTakenPerMinDeltas":{"zeroToTen":113.0,"tenToTwenty":383.5,"twentyToThirty":379.29999999999995},"damageTakenDiffPerMinDeltas":{"zeroToTen":-144.9,"tenToTwenty":-230.89999999999998,"twentyToThirty":-403.75},"role":"DUO_SUPPORT","lane":"BOTTOM"},"masteries":[{"masteryId":4113,"rank":4},{"masteryId":4121,"rank":1},{"masteryId":4123,"rank":3},{"masteryId":4133,"rank":1},{"masteryId":4211,"rank":2},{"masteryId":4212,"rank":2},{"masteryId":4221,"rank":1},{"masteryId":4222,"rank":2},{"masteryId":4313,"rank":3},{"masteryId":4314,"rank":1},{"masteryId":4322,"rank":3},{"masteryId":4323,"rank":1},{"masteryId":4324,"rank":1},{"masteryId":4331,"rank":3},{"masteryId":4334,"rank":1},{"masteryId":4342,"rank":1}],"stats":{"winner":true,"champLevel":14,"item0":2004,"item1":3092,"item2":3157,"item3":2049,"item4":3117,"item5":3028,"item6":3364,"kills":1,"doubleKills":0,"tripleKills":0,"quadraKills":0,"pentaKills":0,"unrealKills":0,"largestKillingSpree":0,"deaths":2,"assists":20,"totalDamageDealt":29245,"totalDamageDealtToChampions":10165,"totalDamageTaken":12563,"largestCriticalStrike":0,"totalHeal":40,"minionsKilled":28,"neutralMinionsKilled":1,"neutralMinionsKilledTeamJungle":0,"neutralMinionsKilledEnemyJungle":1,"goldEarned":10171,"goldSpent":8570,"combatPlayerScore":0,"objectivePlayerScore":0,"totalPlayerScore":0,"totalScoreRank":0,"magicDamageDealtToChampions":8849,"physicalDamageDealtToChampions":1316,"trueDamageDealtToChampions":0,"visionWardsBoughtInGame":3,"sightWardsBoughtInGame":1,"magicDamageDealt":23205,"physicalDamageDealt":6040,"trueDamageDealt":0,"magicDamageTaken":5076,"physicalDamageTaken":7247,"trueDamageTaken":239,"firstBloodKill":false,"firstBloodAssist":false,"firstTowerKill":false,"firstTowerAssist":true,"firstInhibitorKill":false,"firstInhibitorAssist":false,"inhibitorKills":0,"towerKills":0,"wardsPlaced":27,"wardsKilled":5,"largestMultiKill":1,"killingSprees":0,"totalUnitsHealed":1,"totalTimeCrowdControlDealt":122},"participantId":0,"runes":[{"runeId":5297,"rank":9},{"runeId":5315,"rank":9},{"runeId":5347,"rank":3},{"runeId":5402,"rank":9}]}],"participantIdentities":[{"participantId":0,"player":{"summonerId":30743211,"summonerName":"intinig","matchHistoryUri":"/v1/stats/player_history/EUW1/34720432","profileIcon":784}}]}]}
|
@@ -3,24 +3,24 @@ require "lol"
|
|
3
3
|
|
4
4
|
include Lol
|
5
5
|
|
6
|
-
describe
|
6
|
+
describe MatchListRequest do
|
7
7
|
it "inherits from Request" do
|
8
|
-
expect(
|
8
|
+
expect(MatchListRequest.ancestors[1]).to eq(Request)
|
9
9
|
end
|
10
10
|
|
11
|
-
let(:request) {
|
11
|
+
let(:request) { MatchListRequest.new("api_key", "euw") }
|
12
12
|
|
13
13
|
describe "#get" do
|
14
14
|
subject { request.get(1) }
|
15
15
|
|
16
|
-
before { stub_request(request, '
|
16
|
+
before { stub_request(request, 'match_list', 'matchlist/by-summoner/1') }
|
17
17
|
|
18
18
|
it 'returns an hash' do
|
19
19
|
expect(subject).to be_a(Hash)
|
20
20
|
end
|
21
21
|
|
22
22
|
it 'fetches matches from the API' do
|
23
|
-
fixture = load_fixture('
|
23
|
+
fixture = load_fixture('match_list', MatchListRequest.api_version)
|
24
24
|
expect(subject.keys).to match_array fixture.keys
|
25
25
|
end
|
26
26
|
end
|
data/spec/lol/request_spec.rb
CHANGED
@@ -97,6 +97,12 @@ describe Request do
|
|
97
97
|
request.perform_request "/foo?api_key=asd"
|
98
98
|
end
|
99
99
|
|
100
|
+
it "is not cached if post" do
|
101
|
+
expect(request.class).to receive(:post).twice
|
102
|
+
request.perform_request "/foo?api_key=asd", :post
|
103
|
+
request.perform_request "/foo?api_key=asd", :post
|
104
|
+
end
|
105
|
+
|
100
106
|
it "serializes cached responses" do
|
101
107
|
expect(JSON).to receive(:parse)
|
102
108
|
request.perform_request "/foo?api_key=asd"
|
@@ -113,6 +119,12 @@ describe Request do
|
|
113
119
|
end
|
114
120
|
end
|
115
121
|
|
122
|
+
describe "clean_url" do
|
123
|
+
it "works when url does not have a query string" do
|
124
|
+
expect { subject.clean_url 'http://www.leagueoflegends.com' }.not_to raise_error
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
116
128
|
describe "api_url" do
|
117
129
|
it "defaults on Request#region" do
|
118
130
|
expect(subject.api_url("bar")).to match(/\/euw\//)
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
require "lol"
|
3
|
+
|
4
|
+
include Lol
|
5
|
+
|
6
|
+
describe TournamentCode do
|
7
|
+
it_behaves_like 'Lol model' do
|
8
|
+
let(:valid_attributes) { { } }
|
9
|
+
end
|
10
|
+
|
11
|
+
%w(id provider_id tournament_id code region map
|
12
|
+
team_size spectators pick_type lobby_name password).each do |attribute|
|
13
|
+
describe "#{attribute} attribute" do
|
14
|
+
it_behaves_like 'plain attribute' do
|
15
|
+
let(:attribute) { attribute }
|
16
|
+
let(:attribute_value) { 'asd' }
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -37,4 +37,33 @@ describe TournamentProviderRequest do
|
|
37
37
|
# end
|
38
38
|
end
|
39
39
|
|
40
|
+
describe "#get_code" do
|
41
|
+
# Can't use stub_request for different api_url
|
42
|
+
before(:each) do
|
43
|
+
full_url = request.api_url "code/CODE-FOR-TEST?#{request.api_query_string}"
|
44
|
+
fixture_json = load_fixture('get-code', TournamentProviderRequest.api_version)
|
45
|
+
|
46
|
+
expect(TournamentProviderRequest).to receive(:get).with(full_url).and_return(fixture_json)
|
47
|
+
end
|
48
|
+
subject { request.get_code "CODE-FOR-TEST" }
|
49
|
+
|
50
|
+
it 'returns a TournamentCode' do
|
51
|
+
expect(subject).to be_a(Lol::TournamentCode)
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
describe "#update_code" do
|
56
|
+
let(:fixture) { load_fixture('get-code', TournamentProviderRequest.api_version) }
|
57
|
+
|
58
|
+
it 'exclude nil options' do
|
59
|
+
expect(request).to receive(:perform_request).once.ordered.with(
|
60
|
+
instance_of(String),
|
61
|
+
:put,
|
62
|
+
{ allowedParticipants: "1,2,3,4,5,6,7,8,9,10" },
|
63
|
+
instance_of(Hash)
|
64
|
+
)
|
65
|
+
expect(request).to receive(:perform_request).once.ordered.with(instance_of(String)).and_return(fixture)
|
66
|
+
request.update_code "CODE-FOR-TEST", { allowed_participants: [1,2,3,4,5,6,7,8,9,10] }
|
67
|
+
end
|
68
|
+
end
|
40
69
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-lol
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Giovanni Intini
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-02-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -290,7 +290,7 @@ files:
|
|
290
290
|
- lib/lol/lol_status_request.rb
|
291
291
|
- lib/lol/mastery.rb
|
292
292
|
- lib/lol/mastery_page.rb
|
293
|
-
- lib/lol/
|
293
|
+
- lib/lol/match_list_request.rb
|
294
294
|
- lib/lol/match_request.rb
|
295
295
|
- lib/lol/match_summary.rb
|
296
296
|
- lib/lol/mini_series.rb
|
@@ -310,6 +310,7 @@ files:
|
|
310
310
|
- lib/lol/team_member.rb
|
311
311
|
- lib/lol/team_request.rb
|
312
312
|
- lib/lol/team_statistic.rb
|
313
|
+
- lib/lol/tournament_code.rb
|
313
314
|
- lib/lol/tournament_provider_request.rb
|
314
315
|
- lib/lol/version.rb
|
315
316
|
- ruby-lol.gemspec
|
@@ -341,8 +342,9 @@ files:
|
|
341
342
|
- spec/fixtures/v1.4/get-summoner-name.json
|
342
343
|
- spec/fixtures/v1.4/get-summoner-runes.json
|
343
344
|
- spec/fixtures/v1.4/get-summoner.json
|
345
|
+
- spec/fixtures/v1/get-get-code.json
|
344
346
|
- spec/fixtures/v2.2/get-match.json
|
345
|
-
- spec/fixtures/v2.2/get-
|
347
|
+
- spec/fixtures/v2.2/get-match_list.json
|
346
348
|
- spec/fixtures/v2.4/get-by-summoner.json
|
347
349
|
- spec/fixtures/v2.4/get-team.json
|
348
350
|
- spec/fixtures/v2.5/get-league-by-team.json
|
@@ -367,7 +369,7 @@ files:
|
|
367
369
|
- spec/lol/lol_status_request_spec.rb
|
368
370
|
- spec/lol/mastery_page_spec.rb
|
369
371
|
- spec/lol/mastery_spec.rb
|
370
|
-
- spec/lol/
|
372
|
+
- spec/lol/match_list_request_spec.rb
|
371
373
|
- spec/lol/match_request_spec.rb
|
372
374
|
- spec/lol/match_summary_spec.rb
|
373
375
|
- spec/lol/mini_series_spec.rb
|
@@ -387,6 +389,7 @@ files:
|
|
387
389
|
- spec/lol/team_request_spec.rb
|
388
390
|
- spec/lol/team_spec.rb
|
389
391
|
- spec/lol/team_statistic_spec.rb
|
392
|
+
- spec/lol/tournament_code_spec.rb
|
390
393
|
- spec/lol/tournament_provider_request_spec.rb
|
391
394
|
- spec/spec_helper.rb
|
392
395
|
- spec/support/helpers.rb
|
@@ -444,8 +447,9 @@ test_files:
|
|
444
447
|
- spec/fixtures/v1.4/get-summoner-name.json
|
445
448
|
- spec/fixtures/v1.4/get-summoner-runes.json
|
446
449
|
- spec/fixtures/v1.4/get-summoner.json
|
450
|
+
- spec/fixtures/v1/get-get-code.json
|
447
451
|
- spec/fixtures/v2.2/get-match.json
|
448
|
-
- spec/fixtures/v2.2/get-
|
452
|
+
- spec/fixtures/v2.2/get-match_list.json
|
449
453
|
- spec/fixtures/v2.4/get-by-summoner.json
|
450
454
|
- spec/fixtures/v2.4/get-team.json
|
451
455
|
- spec/fixtures/v2.5/get-league-by-team.json
|
@@ -470,7 +474,7 @@ test_files:
|
|
470
474
|
- spec/lol/lol_status_request_spec.rb
|
471
475
|
- spec/lol/mastery_page_spec.rb
|
472
476
|
- spec/lol/mastery_spec.rb
|
473
|
-
- spec/lol/
|
477
|
+
- spec/lol/match_list_request_spec.rb
|
474
478
|
- spec/lol/match_request_spec.rb
|
475
479
|
- spec/lol/match_summary_spec.rb
|
476
480
|
- spec/lol/mini_series_spec.rb
|
@@ -490,6 +494,7 @@ test_files:
|
|
490
494
|
- spec/lol/team_request_spec.rb
|
491
495
|
- spec/lol/team_spec.rb
|
492
496
|
- spec/lol/team_statistic_spec.rb
|
497
|
+
- spec/lol/tournament_code_spec.rb
|
493
498
|
- spec/lol/tournament_provider_request_spec.rb
|
494
499
|
- spec/spec_helper.rb
|
495
500
|
- spec/support/helpers.rb
|