Class: RiotKit::Models::Riot::Player::Combat

Inherits:
Object
  • Object
show all
Defined in:
lib/riot_kit/models/riot/player/combat.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**attrs) ⇒ Combat

Returns a new instance of Combat.



11
12
13
14
15
16
# File 'lib/riot_kit/models/riot/player/combat.rb', line 11

def initialize(**attrs)
  assign_damage_dealt(attrs)
  assign_damage_taken(attrs)
  assign_support(attrs)
  assign_highlights(attrs)
end

Instance Attribute Details

#damage_self_mitigatedObject (readonly)

Returns the value of attribute damage_self_mitigated.



8
9
10
# File 'lib/riot_kit/models/riot/player/combat.rb', line 8

def damage_self_mitigated
  @damage_self_mitigated
end

#double_killsObject (readonly)

Returns the value of attribute double_kills.



8
9
10
# File 'lib/riot_kit/models/riot/player/combat.rb', line 8

def double_kills
  @double_kills
end

#killing_spreesObject (readonly)

Returns the value of attribute killing_sprees.



8
9
10
# File 'lib/riot_kit/models/riot/player/combat.rb', line 8

def killing_sprees
  @killing_sprees
end

#largest_killing_spreeObject (readonly)

Returns the value of attribute largest_killing_spree.



8
9
10
# File 'lib/riot_kit/models/riot/player/combat.rb', line 8

def largest_killing_spree
  @largest_killing_spree
end

#largest_multi_killObject (readonly)

Returns the value of attribute largest_multi_kill.



8
9
10
# File 'lib/riot_kit/models/riot/player/combat.rb', line 8

def largest_multi_kill
  @largest_multi_kill
end

#magic_damage_dealt_to_championsObject (readonly)

Returns the value of attribute magic_damage_dealt_to_champions.



8
9
10
# File 'lib/riot_kit/models/riot/player/combat.rb', line 8

def magic_damage_dealt_to_champions
  @magic_damage_dealt_to_champions
end

#magic_damage_takenObject (readonly)

Returns the value of attribute magic_damage_taken.



8
9
10
# File 'lib/riot_kit/models/riot/player/combat.rb', line 8

def magic_damage_taken
  @magic_damage_taken
end

#outnumbered_killsObject (readonly)

Returns the value of attribute outnumbered_kills.



8
9
10
# File 'lib/riot_kit/models/riot/player/combat.rb', line 8

def outnumbered_kills
  @outnumbered_kills
end

#penta_killsObject (readonly)

Returns the value of attribute penta_kills.



8
9
10
# File 'lib/riot_kit/models/riot/player/combat.rb', line 8

def penta_kills
  @penta_kills
end

#physical_damage_dealt_to_championsObject (readonly)

Returns the value of attribute physical_damage_dealt_to_champions.



8
9
10
# File 'lib/riot_kit/models/riot/player/combat.rb', line 8

def physical_damage_dealt_to_champions
  @physical_damage_dealt_to_champions
end

#physical_damage_takenObject (readonly)

Returns the value of attribute physical_damage_taken.



8
9
10
# File 'lib/riot_kit/models/riot/player/combat.rb', line 8

def physical_damage_taken
  @physical_damage_taken
end

#quadra_killsObject (readonly)

Returns the value of attribute quadra_kills.



8
9
10
# File 'lib/riot_kit/models/riot/player/combat.rb', line 8

def quadra_kills
  @quadra_kills
end

#skillshots_dodgedObject (readonly)

Returns the value of attribute skillshots_dodged.



8
9
10
# File 'lib/riot_kit/models/riot/player/combat.rb', line 8

def skillshots_dodged
  @skillshots_dodged
end

#skillshots_hitObject (readonly)

Returns the value of attribute skillshots_hit.



8
9
10
# File 'lib/riot_kit/models/riot/player/combat.rb', line 8

def skillshots_hit
  @skillshots_hit
end

#solo_killsObject (readonly)

Returns the value of attribute solo_kills.



8
9
10
# File 'lib/riot_kit/models/riot/player/combat.rb', line 8

def solo_kills
  @solo_kills
end

#survived_single_digit_hpObject (readonly)

Returns the value of attribute survived_single_digit_hp.



8
9
10
# File 'lib/riot_kit/models/riot/player/combat.rb', line 8

def survived_single_digit_hp
  @survived_single_digit_hp
end

#time_ccing_othersObject (readonly)

Returns the value of attribute time_ccing_others.



8
9
10
# File 'lib/riot_kit/models/riot/player/combat.rb', line 8

def time_ccing_others
  @time_ccing_others
end

#total_damage_dealt_to_championsObject (readonly)

Returns the value of attribute total_damage_dealt_to_champions.



8
9
10
# File 'lib/riot_kit/models/riot/player/combat.rb', line 8

def total_damage_dealt_to_champions
  @total_damage_dealt_to_champions
end

#total_damage_shielded_on_teammatesObject (readonly)

Returns the value of attribute total_damage_shielded_on_teammates.



8
9
10
# File 'lib/riot_kit/models/riot/player/combat.rb', line 8

def total_damage_shielded_on_teammates
  @total_damage_shielded_on_teammates
end

#total_damage_takenObject (readonly)

Returns the value of attribute total_damage_taken.



8
9
10
# File 'lib/riot_kit/models/riot/player/combat.rb', line 8

def total_damage_taken
  @total_damage_taken
end

#total_healObject (readonly)

Returns the value of attribute total_heal.



8
9
10
# File 'lib/riot_kit/models/riot/player/combat.rb', line 8

def total_heal
  @total_heal
end

#total_heals_on_teammatesObject (readonly)

Returns the value of attribute total_heals_on_teammates.



8
9
10
# File 'lib/riot_kit/models/riot/player/combat.rb', line 8

def total_heals_on_teammates
  @total_heals_on_teammates
end

#triple_killsObject (readonly)

Returns the value of attribute triple_kills.



8
9
10
# File 'lib/riot_kit/models/riot/player/combat.rb', line 8

def triple_kills
  @triple_kills
end

#true_damage_dealt_to_championsObject (readonly)

Returns the value of attribute true_damage_dealt_to_champions.



8
9
10
# File 'lib/riot_kit/models/riot/player/combat.rb', line 8

def true_damage_dealt_to_champions
  @true_damage_dealt_to_champions
end

#true_damage_takenObject (readonly)

Returns the value of attribute true_damage_taken.



8
9
10
# File 'lib/riot_kit/models/riot/player/combat.rb', line 8

def true_damage_taken
  @true_damage_taken
end

Instance Method Details

#to_hObject



18
19
20
21
22
23
# File 'lib/riot_kit/models/riot/player/combat.rb', line 18

def to_h
  damage_dealt_attribute_hash
    .merge(damage_taken_attribute_hash)
    .merge(support_attribute_hash)
    .merge(highlight_attribute_hash)
end