Class: LeagueOfLegends::DTO::AggregatedStats

Inherits:
Object
  • Object
show all
Defined in:
lib/league_of_legends/dto/aggregated_stats.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ AggregatedStats

Returns a new instance of AggregatedStats.



33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 33

def initialize attributes
  return if attributes.nil?

  @average_assists = attributes[:averageAssists].to_i
  @average_champions_killed = attributes[:averageChampionsKilled].to_i
  @average_combat_player_score = attributes[:averageCombatPlayerScore].to_i
  @average_node_capture = attributes[:averageNodeCapture].to_i
  @average_node_capture_assist = attributes[:averageNodeCaptureAssist].to_i
  @average_node_neutralize = attributes[:averageNodeNeutralize].to_i
  @average_node_neutralize_assist = attributes[:averageNodeNeutralizeAssist].to_i
  @average_num_deaths = attributes[:averageNumDeaths].to_i
  @average_objective_player_score = attributes[:averageObjectivePlayerScore].to_i
  @average_team_objective = attributes[:averageTeamObjective].to_i
  @average_total_player_score = attributes[:averageTotalPlayerScore].to_i
  @bot_games_layed = attributes[:botGamesPlayed].to_i
  @killing_spree = attributes[:killingSpree].to_i
  @max_assists = attributes[:maxAssists].to_i
  @max_champions_killed = attributes[:maxChampionsKilled].to_i
  @max_combat_player_score = attributes[:maxCombatPlayerScore].to_i
  @max_largest_critical_strike = attributes[:maxLargestCriticalStrike].to_i
  @max_largest_killing_spree = attributes[:maxLargestKillingSpree].to_i
  @max_node_capture = attributes[:maxNodeCapture].to_i
  @max_node_capture_assist = attributes[:maxNodeCaptureAssist].to_i
  @max_node_neutralize = attributes[:maxNodeNeutralize].to_i
  @max_node_neutralize_assist = attributes[:maxNodeNeutralizeAssist].to_i
  @max_num_deaths = attributes[:maxNumDeaths].to_i
  @max_objective_player_score = attributes[:maxObjectivePlayerScore].to_i
  @max_team_objective = attributes[:maxTeamObjective].to_i
  @max_time_played = attributes[:maxTimePlayed].to_i
  @max_time_spent_living = attributes[:maxTimeSpentLiving].to_i
  @max_total_player_score = attributes[:maxTotalPlayerScore].to_i
  @most_champion_kills_per_session = attributes[:mostChampionKillsPerSession].to_i
  @most_spells_cast = attributes[:mostSpellsCast].to_i
  @normal_games_played = attributes[:normalGamesPlayed].to_i
  @ranked_premade_games_played = attributes[:rankedPremadeGamesPlayed].to_i
  @ranked_solo_games_played = attributes[:rankedSoloGamesPlayed].to_i
  @total_assists = attributes[:totalAssists].to_i
  @total_champion_kills = attributes[:totalChampionKills].to_i
  @total_damage_dealt = attributes[:totalDamageDealt].to_i
  @total_damage_taken = attributes[:totalDamageTaken].to_i
  @total_deaths_per_session = attributes[:totalDeathsPerSession].to_i
  @total_double_kills = attributes[:totalDoubleKills].to_i
  @total_first_blood = attributes[:totalFirstBlood].to_i
  @total_gold_earned = attributes[:totalGoldEarned].to_i
  @total_heal = attributes[:totalHeal].to_i
  @total_magic_damage_dealt = attributes[:totalMagicDamageDealt].to_i
  @total_minion_kills = attributes[:totalMinionKills].to_i
  @total_neutral_minions_killed = attributes[:totalNeutralMinionsKilled].to_i
  @total_node_capture = attributes[:totalNodeCapture].to_i
  @total_node_neutralize = attributes[:totalNodeNeutralize].to_i
  @total_penta_kills = attributes[:totalPentaKills].to_i
  @total_physical_damage_dealt = attributes[:totalPhysicalDamageDealt].to_i
  @total_quadra_kills = attributes[:totalQuadraKills].to_i
  @total_sessions_lost = attributes[:totalSessionsLost].to_i
  @total_sessions_played = attributes[:totalSessionsPlayed].to_i
  @total_sessions_won = attributes[:totalSessionsWon].to_i
  @total_triple_kills = attributes[:totalTripleKills].to_i
  @total_turrets_killed = attributes[:totalTurretsKilled].to_i
  @total_unreal_kills = attributes[:totalUnrealKills].to_i
end

Instance Attribute Details

#average_assistsObject (readonly)

Returns the value of attribute average_assists.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def average_assists
  @average_assists
end

#average_champions_killedObject (readonly)

Returns the value of attribute average_champions_killed.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def average_champions_killed
  @average_champions_killed
end

#average_combat_player_scoreObject (readonly)

Returns the value of attribute average_combat_player_score.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def average_combat_player_score
  @average_combat_player_score
end

#average_node_captureObject (readonly)

Returns the value of attribute average_node_capture.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def average_node_capture
  @average_node_capture
end

#average_node_capture_assistObject (readonly)

Returns the value of attribute average_node_capture_assist.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def average_node_capture_assist
  @average_node_capture_assist
end

#average_node_neutralizeObject (readonly)

Returns the value of attribute average_node_neutralize.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def average_node_neutralize
  @average_node_neutralize
end

#average_node_neutralize_assistObject (readonly)

Returns the value of attribute average_node_neutralize_assist.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def average_node_neutralize_assist
  @average_node_neutralize_assist
end

#average_num_deathsObject (readonly)

Returns the value of attribute average_num_deaths.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def average_num_deaths
  @average_num_deaths
end

#average_objective_player_scoreObject (readonly)

Returns the value of attribute average_objective_player_score.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def average_objective_player_score
  @average_objective_player_score
end

#average_team_objectiveObject (readonly)

Returns the value of attribute average_team_objective.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def average_team_objective
  @average_team_objective
end

#average_total_player_scoreObject (readonly)

Returns the value of attribute average_total_player_score.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def average_total_player_score
  @average_total_player_score
end

#bot_games_layedObject (readonly)

Returns the value of attribute bot_games_layed.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def bot_games_layed
  @bot_games_layed
end

#killing_spreeObject (readonly)

Returns the value of attribute killing_spree.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def killing_spree
  @killing_spree
end

#max_assistsObject (readonly)

Returns the value of attribute max_assists.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def max_assists
  @max_assists
end

#max_champions_killedObject (readonly)

Returns the value of attribute max_champions_killed.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def max_champions_killed
  @max_champions_killed
end

#max_combat_player_scoreObject (readonly)

Returns the value of attribute max_combat_player_score.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def max_combat_player_score
  @max_combat_player_score
end

#max_largest_critical_strikeObject (readonly)

Returns the value of attribute max_largest_critical_strike.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def max_largest_critical_strike
  @max_largest_critical_strike
end

#max_largest_killing_spreeObject (readonly)

Returns the value of attribute max_largest_killing_spree.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def max_largest_killing_spree
  @max_largest_killing_spree
end

#max_node_captureObject (readonly)

Returns the value of attribute max_node_capture.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def max_node_capture
  @max_node_capture
end

#max_node_capture_assistObject (readonly)

Returns the value of attribute max_node_capture_assist.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def max_node_capture_assist
  @max_node_capture_assist
end

#max_node_neutralizeObject (readonly)

Returns the value of attribute max_node_neutralize.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def max_node_neutralize
  @max_node_neutralize
end

#max_node_neutralize_assistObject (readonly)

Returns the value of attribute max_node_neutralize_assist.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def max_node_neutralize_assist
  @max_node_neutralize_assist
end

#max_num_deathsObject (readonly)

Returns the value of attribute max_num_deaths.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def max_num_deaths
  @max_num_deaths
end

#max_objective_player_scoreObject (readonly)

Returns the value of attribute max_objective_player_score.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def max_objective_player_score
  @max_objective_player_score
end

#max_team_objectiveObject (readonly)

Returns the value of attribute max_team_objective.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def max_team_objective
  @max_team_objective
end

#max_time_playedObject (readonly)

Returns the value of attribute max_time_played.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def max_time_played
  @max_time_played
end

#max_time_spent_livingObject (readonly)

Returns the value of attribute max_time_spent_living.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def max_time_spent_living
  @max_time_spent_living
end

#max_total_player_scoreObject (readonly)

Returns the value of attribute max_total_player_score.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def max_total_player_score
  @max_total_player_score
end

#most_champion_kills_per_sessionObject (readonly)

Returns the value of attribute most_champion_kills_per_session.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def most_champion_kills_per_session
  @most_champion_kills_per_session
end

#most_spells_castObject (readonly)

Returns the value of attribute most_spells_cast.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def most_spells_cast
  @most_spells_cast
end

#normal_games_playedObject (readonly)

Returns the value of attribute normal_games_played.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def normal_games_played
  @normal_games_played
end

#ranked_premade_games_playedObject (readonly)

Returns the value of attribute ranked_premade_games_played.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def ranked_premade_games_played
  @ranked_premade_games_played
end

#ranked_solo_games_playedObject (readonly)

Returns the value of attribute ranked_solo_games_played.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def ranked_solo_games_played
  @ranked_solo_games_played
end

#total_assistsObject (readonly)

Returns the value of attribute total_assists.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def total_assists
  @total_assists
end

#total_champion_killsObject (readonly)

Returns the value of attribute total_champion_kills.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def total_champion_kills
  @total_champion_kills
end

#total_damage_dealtObject (readonly)

Returns the value of attribute total_damage_dealt.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def total_damage_dealt
  @total_damage_dealt
end

#total_damage_takenObject (readonly)

Returns the value of attribute total_damage_taken.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def total_damage_taken
  @total_damage_taken
end

#total_deaths_per_sessionObject (readonly)

Returns the value of attribute total_deaths_per_session.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def total_deaths_per_session
  @total_deaths_per_session
end

#total_double_killsObject (readonly)

Returns the value of attribute total_double_kills.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def total_double_kills
  @total_double_kills
end

#total_first_bloodObject (readonly)

Returns the value of attribute total_first_blood.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def total_first_blood
  @total_first_blood
end

#total_gold_earnedObject (readonly)

Returns the value of attribute total_gold_earned.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def total_gold_earned
  @total_gold_earned
end

#total_healObject (readonly)

Returns the value of attribute total_heal.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def total_heal
  @total_heal
end

#total_magic_damage_dealtObject (readonly)

Returns the value of attribute total_magic_damage_dealt.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def total_magic_damage_dealt
  @total_magic_damage_dealt
end

#total_minion_killsObject (readonly)

Returns the value of attribute total_minion_kills.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def total_minion_kills
  @total_minion_kills
end

#total_neutral_minions_killedObject (readonly)

Returns the value of attribute total_neutral_minions_killed.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def total_neutral_minions_killed
  @total_neutral_minions_killed
end

#total_node_captureObject (readonly)

Returns the value of attribute total_node_capture.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def total_node_capture
  @total_node_capture
end

#total_node_neutralizeObject (readonly)

Returns the value of attribute total_node_neutralize.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def total_node_neutralize
  @total_node_neutralize
end

#total_penta_killsObject (readonly)

Returns the value of attribute total_penta_kills.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def total_penta_kills
  @total_penta_kills
end

#total_physical_damage_dealtObject (readonly)

Returns the value of attribute total_physical_damage_dealt.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def total_physical_damage_dealt
  @total_physical_damage_dealt
end

#total_quadra_killsObject (readonly)

Returns the value of attribute total_quadra_kills.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def total_quadra_kills
  @total_quadra_kills
end

#total_sessions_lostObject (readonly)

Returns the value of attribute total_sessions_lost.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def total_sessions_lost
  @total_sessions_lost
end

#total_sessions_playedObject (readonly)

Returns the value of attribute total_sessions_played.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def total_sessions_played
  @total_sessions_played
end

#total_sessions_wonObject (readonly)

Returns the value of attribute total_sessions_won.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def total_sessions_won
  @total_sessions_won
end

#total_triple_killsObject (readonly)

Returns the value of attribute total_triple_kills.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def total_triple_kills
  @total_triple_kills
end

#total_turrets_killedObject (readonly)

Returns the value of attribute total_turrets_killed.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def total_turrets_killed
  @total_turrets_killed
end

#total_unreal_killsObject (readonly)

Returns the value of attribute total_unreal_kills.



9
10
11
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 9

def total_unreal_kills
  @total_unreal_kills
end

Class Method Details

.versionObject



5
6
7
# File 'lib/league_of_legends/dto/aggregated_stats.rb', line 5

def self.version
  ::LeagueOfLegends::DTO::PlayerStatsSummaryList.version
end