Class: RiotKit::Models::Riot::Player::Combat
- Inherits:
-
Object
- Object
- RiotKit::Models::Riot::Player::Combat
- Defined in:
- lib/riot_kit/models/riot/player/combat.rb
Instance Attribute Summary collapse
-
#damage_self_mitigated ⇒ Object
readonly
Returns the value of attribute damage_self_mitigated.
-
#double_kills ⇒ Object
readonly
Returns the value of attribute double_kills.
-
#killing_sprees ⇒ Object
readonly
Returns the value of attribute killing_sprees.
-
#largest_killing_spree ⇒ Object
readonly
Returns the value of attribute largest_killing_spree.
-
#largest_multi_kill ⇒ Object
readonly
Returns the value of attribute largest_multi_kill.
-
#magic_damage_dealt_to_champions ⇒ Object
readonly
Returns the value of attribute magic_damage_dealt_to_champions.
-
#magic_damage_taken ⇒ Object
readonly
Returns the value of attribute magic_damage_taken.
-
#outnumbered_kills ⇒ Object
readonly
Returns the value of attribute outnumbered_kills.
-
#penta_kills ⇒ Object
readonly
Returns the value of attribute penta_kills.
-
#physical_damage_dealt_to_champions ⇒ Object
readonly
Returns the value of attribute physical_damage_dealt_to_champions.
-
#physical_damage_taken ⇒ Object
readonly
Returns the value of attribute physical_damage_taken.
-
#quadra_kills ⇒ Object
readonly
Returns the value of attribute quadra_kills.
-
#skillshots_dodged ⇒ Object
readonly
Returns the value of attribute skillshots_dodged.
-
#skillshots_hit ⇒ Object
readonly
Returns the value of attribute skillshots_hit.
-
#solo_kills ⇒ Object
readonly
Returns the value of attribute solo_kills.
-
#survived_single_digit_hp ⇒ Object
readonly
Returns the value of attribute survived_single_digit_hp.
-
#time_ccing_others ⇒ Object
readonly
Returns the value of attribute time_ccing_others.
-
#total_damage_dealt_to_champions ⇒ Object
readonly
Returns the value of attribute total_damage_dealt_to_champions.
-
#total_damage_shielded_on_teammates ⇒ Object
readonly
Returns the value of attribute total_damage_shielded_on_teammates.
-
#total_damage_taken ⇒ Object
readonly
Returns the value of attribute total_damage_taken.
-
#total_heal ⇒ Object
readonly
Returns the value of attribute total_heal.
-
#total_heals_on_teammates ⇒ Object
readonly
Returns the value of attribute total_heals_on_teammates.
-
#triple_kills ⇒ Object
readonly
Returns the value of attribute triple_kills.
-
#true_damage_dealt_to_champions ⇒ Object
readonly
Returns the value of attribute true_damage_dealt_to_champions.
-
#true_damage_taken ⇒ Object
readonly
Returns the value of attribute true_damage_taken.
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ Combat
constructor
A new instance of Combat.
- #to_h ⇒ Object
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_mitigated ⇒ Object (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_kills ⇒ Object (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_sprees ⇒ Object (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_spree ⇒ Object (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_kill ⇒ Object (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_champions ⇒ Object (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_taken ⇒ Object (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_kills ⇒ Object (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_kills ⇒ Object (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_champions ⇒ Object (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_taken ⇒ Object (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_kills ⇒ Object (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_dodged ⇒ Object (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_hit ⇒ Object (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_kills ⇒ Object (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_hp ⇒ Object (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_others ⇒ Object (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_champions ⇒ Object (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_teammates ⇒ Object (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_taken ⇒ Object (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_heal ⇒ Object (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_teammates ⇒ Object (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_kills ⇒ Object (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_champions ⇒ Object (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_taken ⇒ Object (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_h ⇒ Object
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 |