Class: Wowr::Classes::SpellSpeed

Inherits:
Object
  • Object
show all
Defined in:
lib/wowr/character.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(elem) ⇒ SpellSpeed

Returns a new instance of SpellSpeed.



574
575
576
577
# File 'lib/wowr/character.rb', line 574

def initialize(elem)
	@percent_increase	= elem[:hastePercent].to_f
	@haste_rating 	= elem[:hasteRating].to_i
end

Instance Attribute Details

#haste_ratingObject (readonly)

Returns the value of attribute haste_rating.



572
573
574
# File 'lib/wowr/character.rb', line 572

def haste_rating
  @haste_rating
end

#percent_increaseObject (readonly)

Returns the value of attribute percent_increase.



572
573
574
# File 'lib/wowr/character.rb', line 572

def percent_increase
  @percent_increase
end