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.
476 477 478 479 480 |
# File 'lib/wowr/character.rb', line 476 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.
474 475 476 |
# File 'lib/wowr/character.rb', line 474 def haste_percent @haste_percent end |
#haste_rating ⇒ Object (readonly)
Returns the value of attribute haste_rating.
474 475 476 |
# File 'lib/wowr/character.rb', line 474 def @haste_rating end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
474 475 476 |
# File 'lib/wowr/character.rb', line 474 def value @value end |