class ExpBreakdown
An ExpBreakdown
represents a collection of experience sources for a given minute of game time for a team
Attributes
creep[RW]
hero[RW]
minion[RW]
structure[RW]
time[RW]
trickle[RW]
Public Class Methods
new(minion, creep, structure, hero, trickle, time)
click to toggle source
# File lib/herostats/exp_breakdown.rb, line 11 def initialize(minion, creep, structure, hero, trickle, time) @minion = minion @creep = creep @structure = structure @hero = hero @trickle = trickle @time = time end
Public Instance Methods
total_exp()
click to toggle source
Returns the total experience for this breakdown
# File lib/herostats/exp_breakdown.rb, line 21 def total_exp @minion + @creep + @structure + @hero + @trickle end