class LolApi::ParticipantStats

Attributes

raw_stats[R]

Public Class Methods

new(raw_stats) click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 49
def initialize(raw_stats)
        @raw_stats = raw_stats
end

Public Instance Methods

assists() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 53
def assists
        raw_stats['assists']
end
champ_level() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 56
def champ_level 
        raw_stats['champLevel']
end
combat_player_score() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 60
def combat_player_score 
        raw_stats['combatPlayerScore'] || 0
end
deaths() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 64
def deaths
        raw_stats['deaths']
end
double_kills() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 68
def double_kills 
        raw_stats['doubleKills']
end
first_blood_assist() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 72
def first_blood_assist 
        raw_stats['firstBloodAssist']
end
first_blood_kill() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 76
def first_blood_kill
        raw_stats['firstBloodKill']
end
first_inhibitor_assist() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 80
def first_inhibitor_assist 
        raw_stats['firstInhibitorAssist']
end
first_inhibitor_kill() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 84
def first_inhibitor_kill 
        raw_stats['firstInhibitorKill']
end
first_tower_assist() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 88
def first_tower_assist 
        raw_stats['firstTowerAssist']
end
first_tower_kill() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 92
def first_tower_kill 
        raw_stats['firstTowerKill']
end
gold_earned() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 96
def gold_earned 
        raw_stats['goldEarned']
end
gold_spent() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 100
def gold_spent 
        raw_stats['goldSpent']
end
inhibitor_kills() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 104
def inhibitor_kills 
        raw_stats['inhibitorKills']
end
inventory() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 108
def inventory
        items = [
                                raw_stats['item0'],
                                raw_stats['item1'],
                                raw_stats['item2'],
                                raw_stats['item3'],
                                raw_stats['item4'],
                                raw_stats['item5'],
                                raw_stats['item6'],
                        ]
        Inventory.new(items)
end
killing_sprees() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 121
def killing_sprees
        raw_stats['killingSprees']
end
kills() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 125
def kills 
        raw_stats['kills']
end
largest_crit() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 129
def largest_crit 
        raw_stats['largestCriticalStrike']
end
largest_killing_spree() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 133
def largest_killing_spree 
        raw_stats['largestKillingSpree']
end
largest_multi_kill() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 137
def largest_multi_kill 
        raw_stats['largestMultiKill']
end
magic_damage_dealt() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 141
def magic_damage_dealt 
        raw_stats['magicDamageDealt']
end
magic_damage_dealt_to_chanpions() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 145
def magic_damage_dealt_to_chanpions 
        raw_stats['magicDamageDealtToChampions']
end
magic_damage_taken() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 149
def magic_damage_taken
        raw_stats['magicDamageTaken']
end
minions_killed() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 153
def minions_killed 
        raw_stats['minionsKilled']
end
netural_minions_killed_enemy_jungle() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 161
def netural_minions_killed_enemy_jungle 
        raw_stats['neutralMinionsKilledEnemyJungle']
end
netural_minions_killed_team_jungle() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 165
def netural_minions_killed_team_jungle 
        raw_stats['neutralMinionsKilledTeamJungle']
end
neutral_minions_killed() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 157
def neutral_minions_killed 
        raw_stats['neutralMinionsKilled']
end
node_capture() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 169
def node_capture 
        raw_stats['nodeCapture'] || 0
end
node_capture_assist() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 172
def node_capture_assist 
        raw_stats['nodeCaptureAssist'] || 0
end
node_neutralize() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 176
def node_neutralize 
        raw_stats['nodeNeutralize'] || 0
end
node_neutralize_assist() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 180
def node_neutralize_assist
        raw_stats['nodeNeutralizeAssist'] || 0
end
objective_player_score() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 184
def objective_player_score 
        raw_stats['objectivePlayerScore'] || 0
end
penta_kills() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 188
def penta_kills 
        raw_stats['pentaKills']
end
physical_damage_dealt() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 192
def physical_damage_dealt 
        raw_stats['physicalDamageDealt']
end
physical_damage_dealt_to_champions() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 196
def physical_damage_dealt_to_champions 
        raw_stats['physicalDamageDealtToChampions']
end
physical_damage_taken() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 200
def physical_damage_taken 
        raw_stats['physicalDamageTaken']
end
quadra_kills() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 204
def quadra_kills 
        raw_stats['quadraKills']
end
sight_wards_bought() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 208
def sight_wards_bought 
        raw_stats['sightWardsBoughtInGame']
end
team_objective() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 212
def team_objective
        raw_stats['teamObjectives'] || 0
end
total_damage_dealt() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 216
def total_damage_dealt 
        raw_stats['totalDamageDealt']
end
total_damage_dealt_to_champions() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 220
def total_damage_dealt_to_champions 
        raw_stats['totalDamageDealtToChampions']
end
total_damage_taken() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 224
def total_damage_taken 
        raw_stats['totalDamageTaken']
end
total_heal() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 228
def total_heal 
        raw_stats['totalHeal']
end
total_player_score() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 232
def total_player_score 
        raw_stats['totalPlayerScore'] || 0
end
total_score_rank() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 236
def total_score_rank 
        raw_stats['totalScoreRank'] || 0
end
total_time_crowd_control_dealt() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 240
def total_time_crowd_control_dealt
        raw_stats['totalTimeCrowdControlDealt']
end
total_units_healed() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 244
def total_units_healed 
        raw_stats['totalUnitsHealed']
end
tower_kills() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 248
def tower_kills
        raw_stats['towerKills']
end
triple_kills() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 252
def triple_kills 
        raw_stats['tripleKills']
end
true_damage_dealt() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 256
def true_damage_dealt 
        raw_stats['trueDamageDealt']
end
true_damage_dealt_to_champions() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 260
def true_damage_dealt_to_champions 
        raw_stats['trueDamageDealtToChampions']
end
true_damage_taken() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 264
def true_damage_taken 
        raw_stats['trueDamageTaken']
end
unreal_kills() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 268
def unreal_kills 
        raw_stats['unrealKills']
end
vision_wards_bought() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 272
def vision_wards_bought 
        raw_stats['visionWardsBoughtInGame']
end
wards_killed() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 276
def wards_killed 
        raw_stats['wardsKilled']
end
wards_placed() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 280
def wards_placed 
        raw_stats['wardsPlaced']
end
winner() click to toggle source
# File lib/lol_api/types/dtos/participant.rb, line 284
def winner 
        raw_stats['winner']
end