Class: Wowr::Classes::SpellSpeed
- Inherits:
-
Object
- Object
- Wowr::Classes::SpellSpeed
- Defined in:
- lib/wowr/character.rb
Instance Attribute Summary collapse
-
#haste_rating ⇒ Object
readonly
Returns the value of attribute haste_rating.
-
#percent_increase ⇒ Object
readonly
Returns the value of attribute percent_increase.
Instance Method Summary collapse
-
#initialize(elem) ⇒ SpellSpeed
constructor
A new instance of SpellSpeed.
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_rating ⇒ Object (readonly)
Returns the value of attribute haste_rating.
572 573 574 |
# File 'lib/wowr/character.rb', line 572 def @haste_rating end |
#percent_increase ⇒ Object (readonly)
Returns the value of attribute percent_increase.
572 573 574 |
# File 'lib/wowr/character.rb', line 572 def percent_increase @percent_increase end |