lol_api 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +22 -0
- data/.guardfile +11 -0
- data/.travis.yml +6 -0
- data/Gemfile +10 -0
- data/LICENSE.txt +22 -0
- data/README.md +29 -0
- data/Rakefile +10 -0
- data/lib/lol_api/client.rb +105 -0
- data/lib/lol_api/configuration.rb +15 -0
- data/lib/lol_api/connection.rb +32 -0
- data/lib/lol_api/types/champion.rb +95 -0
- data/lib/lol_api/types/dtos/image.rb +33 -0
- data/lib/lol_api/types/dtos/info.rb +25 -0
- data/lib/lol_api/types/dtos/participant.rb +419 -0
- data/lib/lol_api/types/dtos/participant_identity.rb +19 -0
- data/lib/lol_api/types/dtos/passive.rb +27 -0
- data/lib/lol_api/types/dtos/player.rb +22 -0
- data/lib/lol_api/types/dtos/recommended.rb +38 -0
- data/lib/lol_api/types/dtos/skin.rb +20 -0
- data/lib/lol_api/types/dtos/spell.rb +98 -0
- data/lib/lol_api/types/dtos/stat.rb +19 -0
- data/lib/lol_api/types/dtos/team.rb +57 -0
- data/lib/lol_api/types/dtos/timeline.rb +180 -0
- data/lib/lol_api/types/history_match.rb +61 -0
- data/lib/lol_api/types/item.rb +126 -0
- data/lib/lol_api/types/mastery.rb +39 -0
- data/lib/lol_api/types/match.rb +43 -0
- data/lib/lol_api/types/summoner.rb +26 -0
- data/lib/lol_api/types/summoner_masteries.rb +66 -0
- data/lib/lol_api/types/summoner_runes.rb +69 -0
- data/lib/lol_api/utils/inspectable.rb +10 -0
- data/lib/lol_api/version.rb +3 -0
- data/lib/lol_api.rb +12 -0
- data/lol_api.gemspec +29 -0
- data/spec/champion_spec.rb +48 -0
- data/spec/client_spec.rb +67 -0
- data/spec/delegation_spec.rb +5 -0
- data/spec/factories.rb +43 -0
- data/spec/fixtures/champion.json +843 -0
- data/spec/fixtures/history.json +127 -0
- data/spec/fixtures/item.json +62 -0
- data/spec/fixtures/mastery.json +25 -0
- data/spec/fixtures/match.json +12167 -0
- data/spec/fixtures/match_details.json +13548 -0
- data/spec/fixtures/summoner.json +7 -0
- data/spec/fixtures/summoner_masteries.json +143 -0
- data/spec/fixtures/summoner_runes.json +132 -0
- data/spec/history_spec.rb +280 -0
- data/spec/item_spec.rb +96 -0
- data/spec/mastery_spec.rb +27 -0
- data/spec/match_details_spec.rb +72 -0
- data/spec/participant_spec.rb +153 -0
- data/spec/participant_timeline_spec.rb +80 -0
- data/spec/spec_helper.rb +22 -0
- data/spec/summoner_spec.rb +120 -0
- data/spec/team_spec.rb +38 -0
- data/spec/timeline_spec.rb +101 -0
- metadata +236 -0
@@ -0,0 +1,127 @@
|
|
1
|
+
{
|
2
|
+
"matchVersion": "4.10.0.379",
|
3
|
+
"region": "EUW",
|
4
|
+
"mapId": 1,
|
5
|
+
"season": "SEASON4",
|
6
|
+
"queueType": "RANKED_SOLO_5x5",
|
7
|
+
"matchDuration": 2615,
|
8
|
+
"matchCreation": 1403301139393,
|
9
|
+
"matchId": 1535572376,
|
10
|
+
"participants": [{
|
11
|
+
"stats": {
|
12
|
+
"unrealKills": 0,
|
13
|
+
"item2": 3046,
|
14
|
+
"item1": 3006,
|
15
|
+
"totalDamageTaken": 22233,
|
16
|
+
"item0": 3072,
|
17
|
+
"pentaKills": 0,
|
18
|
+
"sightWardsBoughtInGame": 0,
|
19
|
+
"winner": false,
|
20
|
+
"magicDamageDealt": 931,
|
21
|
+
"wardsKilled": 2,
|
22
|
+
"largestCriticalStrike": 579,
|
23
|
+
"trueDamageDealt": 514,
|
24
|
+
"doubleKills": 0,
|
25
|
+
"physicalDamageDealt": 182899,
|
26
|
+
"tripleKills": 0,
|
27
|
+
"deaths": 6,
|
28
|
+
"firstBloodAssist": false,
|
29
|
+
"magicDamageDealtToChampions": 851,
|
30
|
+
"assists": 6,
|
31
|
+
"visionWardsBoughtInGame": 0,
|
32
|
+
"totalTimeCrowdControlDealt": 184,
|
33
|
+
"champLevel": 18,
|
34
|
+
"physicalDamageTaken": 15602,
|
35
|
+
"totalDamageDealt": 184345,
|
36
|
+
"largestKillingSpree": 4,
|
37
|
+
"inhibitorKills": 0,
|
38
|
+
"minionsKilled": 224,
|
39
|
+
"physicalDamageDealtToChampions": 24291,
|
40
|
+
"towerKills": 0,
|
41
|
+
"quadraKills": 0,
|
42
|
+
"goldSpent": 14005,
|
43
|
+
"totalDamageDealtToChampions": 25153,
|
44
|
+
"goldEarned": 14833,
|
45
|
+
"neutralMinionsKilledTeamJungle": 21,
|
46
|
+
"firstBloodKill": false,
|
47
|
+
"firstTowerKill": false,
|
48
|
+
"wardsPlaced": 1,
|
49
|
+
"trueDamageDealtToChampions": 10,
|
50
|
+
"killingSprees": 1,
|
51
|
+
"firstInhibitorKill": false,
|
52
|
+
"totalUnitsHealed": 2,
|
53
|
+
"kills": 6,
|
54
|
+
"firstInhibitorAssist": true,
|
55
|
+
"neutralMinionsKilledEnemyJungle": 8,
|
56
|
+
"magicDamageTaken": 5948,
|
57
|
+
"largestMultiKill": 1,
|
58
|
+
"totalHeal": 2676,
|
59
|
+
"item4": 3035,
|
60
|
+
"item3": 3102,
|
61
|
+
"item6": 3340,
|
62
|
+
"firstTowerAssist": false,
|
63
|
+
"item5": 1038,
|
64
|
+
"trueDamageTaken": 682,
|
65
|
+
"neutralMinionsKilled": 29
|
66
|
+
},
|
67
|
+
"timeline": {
|
68
|
+
"xpDiffPerMinDeltas": {
|
69
|
+
"zeroToTen": 14.149999999999991,
|
70
|
+
"thirtyToEnd": -22.44999999999999,
|
71
|
+
"tenToTwenty": 5.100000000000023,
|
72
|
+
"twentyToThirty": 15.650000000000034
|
73
|
+
},
|
74
|
+
"damageTakenDiffPerMinDeltas": {
|
75
|
+
"zeroToTen": -6.599999999999987,
|
76
|
+
"thirtyToEnd": 101.55000000000001,
|
77
|
+
"tenToTwenty": 24.19999999999996,
|
78
|
+
"twentyToThirty": -133.85000000000008
|
79
|
+
},
|
80
|
+
"xpPerMinDeltas": {
|
81
|
+
"zeroToTen": 296.9,
|
82
|
+
"thirtyToEnd": 568.9,
|
83
|
+
"tenToTwenty": 406.20000000000005,
|
84
|
+
"twentyToThirty": 430.4
|
85
|
+
},
|
86
|
+
"goldPerMinDeltas": {
|
87
|
+
"zeroToTen": 233.3,
|
88
|
+
"thirtyToEnd": 414.8,
|
89
|
+
"tenToTwenty": 355.4,
|
90
|
+
"twentyToThirty": 266.4
|
91
|
+
},
|
92
|
+
"role": "DUO_CARRY",
|
93
|
+
"creepsPerMinDeltas": {
|
94
|
+
"zeroToTen": 5.9,
|
95
|
+
"thirtyToEnd": 2.9,
|
96
|
+
"tenToTwenty": 7,
|
97
|
+
"twentyToThirty": 3.8
|
98
|
+
},
|
99
|
+
"csDiffPerMinDeltas": {
|
100
|
+
"zeroToTen": -0.3500000000000001,
|
101
|
+
"thirtyToEnd": -1.5999999999999999,
|
102
|
+
"tenToTwenty": 0.5,
|
103
|
+
"twentyToThirty": 0.5
|
104
|
+
},
|
105
|
+
"damageTakenPerMinDeltas": {
|
106
|
+
"zeroToTen": 260.3,
|
107
|
+
"thirtyToEnd": 580.3,
|
108
|
+
"tenToTwenty": 402.6,
|
109
|
+
"twentyToThirty": 608.5
|
110
|
+
},
|
111
|
+
"lane": "BOTTOM"
|
112
|
+
},
|
113
|
+
"spell2Id": 4,
|
114
|
+
"participantId": 0,
|
115
|
+
"championId": 222,
|
116
|
+
"teamId": 200,
|
117
|
+
"spell1Id": 7
|
118
|
+
}],
|
119
|
+
"participantIdentities": [{
|
120
|
+
"player": {
|
121
|
+
"profileIcon": 28,
|
122
|
+
"matchHistoryUri": "/v1/stats/player_history/EUW1/338263",
|
123
|
+
"summonerName": "furryballs"
|
124
|
+
},
|
125
|
+
"participantId": 0
|
126
|
+
}]
|
127
|
+
}
|
@@ -0,0 +1,62 @@
|
|
1
|
+
{
|
2
|
+
"tags": [
|
3
|
+
"SpellDamage",
|
4
|
+
"NonbootsMovement",
|
5
|
+
"CooldownReduction",
|
6
|
+
"Slow",
|
7
|
+
"Active",
|
8
|
+
"Vision"
|
9
|
+
],
|
10
|
+
"plaintext": "Summon wraiths to slow and reveal enemy champions",
|
11
|
+
"stats": {
|
12
|
+
"FlatMagicDamageMod": 80,
|
13
|
+
"PercentMovementSpeedMod": 0.06
|
14
|
+
},
|
15
|
+
"image": {
|
16
|
+
"w": 48,
|
17
|
+
"full": "3290.png",
|
18
|
+
"sprite": "item2.png",
|
19
|
+
"group": "item",
|
20
|
+
"h": 48,
|
21
|
+
"y": 0,
|
22
|
+
"x": 144
|
23
|
+
},
|
24
|
+
"colloq": "spooky ghosts",
|
25
|
+
"from": [
|
26
|
+
"3108",
|
27
|
+
"3113"
|
28
|
+
],
|
29
|
+
"depth": 3,
|
30
|
+
"id": 3290,
|
31
|
+
"sanitizedDescription": "+80 Ability Power +10% Cooldown Reduction +6% Movement Speed UNIQUE Passive - Trap Detection: Nearby stealthed enemy traps are revealed. UNIQUE Active - Hunt: Summons up to 2 invulnerable ghosts that seek out the two nearest enemy champions for 6 seconds. If a ghost reaches its target, it reveals the target and reduces their Movement Speed by 40% for 2.5 seconds. If a ghost cannot find a target, it tries to return to the caster. Ghosts that successfully return in this way reduce the item's cooldown by 20 seconds (60 second cooldown).",
|
32
|
+
"maps": {
|
33
|
+
"1": false,
|
34
|
+
"12": false
|
35
|
+
},
|
36
|
+
"requiredChampion": "Rengar",
|
37
|
+
"consumeOnFull": false,
|
38
|
+
"consumed": false,
|
39
|
+
"description": "<stats>+80 Ability Power<br>+10% Cooldown Reduction<br>+6% Movement Speed<\/stats><br><br><unique>UNIQUE Passive - Trap Detection:<\/unique> Nearby stealthed enemy traps are revealed.<br><active>UNIQUE Active - Hunt:<\/active> Summons up to 2 invulnerable ghosts that seek out the two nearest enemy champions for 6 seconds. If a ghost reaches its target, it reveals the target and reduces their Movement Speed by 40% for 2.5 seconds.<br><br>If a ghost cannot find a target, it tries to return to the caster. Ghosts that successfully return in this way reduce the item's cooldown by 20 seconds (60 second cooldown).",
|
40
|
+
"name": "Twin Shadows",
|
41
|
+
"hideFromAll": false,
|
42
|
+
"inStore": false,
|
43
|
+
"specialRecipe": 3169,
|
44
|
+
"group": "item",
|
45
|
+
"stacks": 3,
|
46
|
+
"rune": {
|
47
|
+
"isRune": false,
|
48
|
+
"tier": "1",
|
49
|
+
"type": "red"
|
50
|
+
},
|
51
|
+
"into": [
|
52
|
+
"3046",
|
53
|
+
"3078",
|
54
|
+
"3087"
|
55
|
+
],
|
56
|
+
"gold": {
|
57
|
+
"total": 2400,
|
58
|
+
"purchasable": true,
|
59
|
+
"sell": 1680,
|
60
|
+
"base": 630
|
61
|
+
}
|
62
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
{
|
2
|
+
"ranks": 3,
|
3
|
+
"id": 4353,
|
4
|
+
"sanitizedDescription": [
|
5
|
+
"+2% Cooldown Reduction and reduces the cooldown of Activated Items by 4%",
|
6
|
+
"+3.5% Cooldown Reduction and reduces the cooldown of Activated Items by 7%",
|
7
|
+
"+5% Cooldown Reduction and reduces the cooldown of Activated Items by 10%"
|
8
|
+
],
|
9
|
+
"description": [
|
10
|
+
"+2% Cooldown Reduction and reduces the cooldown of Activated Items by 4%",
|
11
|
+
"+3.5% Cooldown Reduction and reduces the cooldown of Activated Items by 7%",
|
12
|
+
"+5% Cooldown Reduction and reduces the cooldown of Activated Items by 10%"
|
13
|
+
],
|
14
|
+
"name": "Intelligence",
|
15
|
+
"image": {
|
16
|
+
"w": 48,
|
17
|
+
"full": "4353.png",
|
18
|
+
"sprite": "mastery0.png",
|
19
|
+
"group": "gray_mastery",
|
20
|
+
"h": 48,
|
21
|
+
"y": 240,
|
22
|
+
"x": 240
|
23
|
+
},
|
24
|
+
"prereq": "0"
|
25
|
+
}
|