Class: Wowr::Classes::WeaponSpeed
- Inherits:
-
Object
- Object
- Wowr::Classes::WeaponSpeed
- Defined in:
- lib/wowr/character.rb
Instance Attribute Summary collapse
-
#haste_percent ⇒ Object
readonly
Returns the value of attribute haste_percent.
-
#haste_rating ⇒ Object
readonly
Returns the value of attribute haste_rating.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(elem) ⇒ WeaponSpeed
constructor
A new instance of WeaponSpeed.
Constructor Details
#initialize(elem) ⇒ WeaponSpeed
Returns a new instance of WeaponSpeed.
488 489 490 491 492 |
# File 'lib/wowr/character.rb', line 488 def initialize(elem) @haste_percent = elem[:hastePercent].to_f @haste_rating = elem[:hasteRating].to_f @value = elem[:value].to_f end |
Instance Attribute Details
#haste_percent ⇒ Object (readonly)
Returns the value of attribute haste_percent.
486 487 488 |
# File 'lib/wowr/character.rb', line 486 def haste_percent @haste_percent end |
#haste_rating ⇒ Object (readonly)
Returns the value of attribute haste_rating.
486 487 488 |
# File 'lib/wowr/character.rb', line 486 def @haste_rating end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
486 487 488 |
# File 'lib/wowr/character.rb', line 486 def value @value end |