Class: RiotKit::Models::Riot::Player::Economy
- Inherits:
-
Object
- Object
- RiotKit::Models::Riot::Player::Economy
- Defined in:
- lib/riot_kit/models/riot/player/economy.rb
Instance Attribute Summary collapse
-
#cs_per_minute ⇒ Object
readonly
Returns the value of attribute cs_per_minute.
-
#cs_total ⇒ Object
readonly
Returns the value of attribute cs_total.
-
#damage_per_minute ⇒ Object
readonly
Returns the value of attribute damage_per_minute.
-
#gold_earned ⇒ Object
readonly
Returns the value of attribute gold_earned.
-
#gold_per_minute ⇒ Object
readonly
Returns the value of attribute gold_per_minute.
-
#gold_spent ⇒ Object
readonly
Returns the value of attribute gold_spent.
-
#neutral_minions_ally_jungle ⇒ Object
readonly
Returns the value of attribute neutral_minions_ally_jungle.
-
#neutral_minions_enemy_jungle ⇒ Object
readonly
Returns the value of attribute neutral_minions_enemy_jungle.
-
#neutral_minions_killed ⇒ Object
readonly
Returns the value of attribute neutral_minions_killed.
-
#team_damage_percentage ⇒ Object
readonly
Returns the value of attribute team_damage_percentage.
-
#total_minions_killed ⇒ Object
readonly
Returns the value of attribute total_minions_killed.
-
#vision_score_per_minute ⇒ Object
readonly
Returns the value of attribute vision_score_per_minute.
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ Economy
constructor
A new instance of Economy.
- #to_h ⇒ Object
Constructor Details
#initialize(**attrs) ⇒ Economy
Returns a new instance of Economy.
14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/riot_kit/models/riot/player/economy.rb', line 14 def initialize(**attrs) @gold_earned = attrs[:gold_earned] @gold_spent = attrs[:gold_spent] @cs_total = attrs[:cs_total] @cs_per_minute = attrs[:cs_per_minute] @total_minions_killed = attrs[:total_minions_killed] @neutral_minions_killed = attrs[:neutral_minions_killed] @neutral_minions_ally_jungle = attrs[:neutral_minions_ally_jungle] @neutral_minions_enemy_jungle = attrs[:neutral_minions_enemy_jungle] @damage_per_minute = attrs[:damage_per_minute] @gold_per_minute = attrs[:gold_per_minute] @vision_score_per_minute = attrs[:vision_score_per_minute] @team_damage_percentage = attrs[:team_damage_percentage] end |
Instance Attribute Details
#cs_per_minute ⇒ Object (readonly)
Returns the value of attribute cs_per_minute.
8 9 10 |
# File 'lib/riot_kit/models/riot/player/economy.rb', line 8 def cs_per_minute @cs_per_minute end |
#cs_total ⇒ Object (readonly)
Returns the value of attribute cs_total.
8 9 10 |
# File 'lib/riot_kit/models/riot/player/economy.rb', line 8 def cs_total @cs_total end |
#damage_per_minute ⇒ Object (readonly)
Returns the value of attribute damage_per_minute.
8 9 10 |
# File 'lib/riot_kit/models/riot/player/economy.rb', line 8 def damage_per_minute @damage_per_minute end |
#gold_earned ⇒ Object (readonly)
Returns the value of attribute gold_earned.
8 9 10 |
# File 'lib/riot_kit/models/riot/player/economy.rb', line 8 def gold_earned @gold_earned end |
#gold_per_minute ⇒ Object (readonly)
Returns the value of attribute gold_per_minute.
8 9 10 |
# File 'lib/riot_kit/models/riot/player/economy.rb', line 8 def gold_per_minute @gold_per_minute end |
#gold_spent ⇒ Object (readonly)
Returns the value of attribute gold_spent.
8 9 10 |
# File 'lib/riot_kit/models/riot/player/economy.rb', line 8 def gold_spent @gold_spent end |
#neutral_minions_ally_jungle ⇒ Object (readonly)
Returns the value of attribute neutral_minions_ally_jungle.
8 9 10 |
# File 'lib/riot_kit/models/riot/player/economy.rb', line 8 def neutral_minions_ally_jungle @neutral_minions_ally_jungle end |
#neutral_minions_enemy_jungle ⇒ Object (readonly)
Returns the value of attribute neutral_minions_enemy_jungle.
8 9 10 |
# File 'lib/riot_kit/models/riot/player/economy.rb', line 8 def neutral_minions_enemy_jungle @neutral_minions_enemy_jungle end |
#neutral_minions_killed ⇒ Object (readonly)
Returns the value of attribute neutral_minions_killed.
8 9 10 |
# File 'lib/riot_kit/models/riot/player/economy.rb', line 8 def neutral_minions_killed @neutral_minions_killed end |
#team_damage_percentage ⇒ Object (readonly)
Returns the value of attribute team_damage_percentage.
8 9 10 |
# File 'lib/riot_kit/models/riot/player/economy.rb', line 8 def team_damage_percentage @team_damage_percentage end |
#total_minions_killed ⇒ Object (readonly)
Returns the value of attribute total_minions_killed.
8 9 10 |
# File 'lib/riot_kit/models/riot/player/economy.rb', line 8 def total_minions_killed @total_minions_killed end |
#vision_score_per_minute ⇒ Object (readonly)
Returns the value of attribute vision_score_per_minute.
8 9 10 |
# File 'lib/riot_kit/models/riot/player/economy.rb', line 8 def vision_score_per_minute @vision_score_per_minute end |
Instance Method Details
#to_h ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/riot_kit/models/riot/player/economy.rb', line 29 def to_h { gold_earned: gold_earned, gold_spent: gold_spent, cs_total: cs_total, cs_per_minute: cs_per_minute, total_minions_killed: total_minions_killed, neutral_minions_killed: neutral_minions_killed, neutral_minions_ally_jungle: neutral_minions_ally_jungle, neutral_minions_enemy_jungle: neutral_minions_enemy_jungle, damage_per_minute: damage_per_minute, gold_per_minute: gold_per_minute, vision_score_per_minute: vision_score_per_minute, team_damage_percentage: team_damage_percentage } end |