Class: Wowr::Classes::WeaponSpeed
- Inherits:
-
Object
- Object
- Wowr::Classes::WeaponSpeed
- Defined in:
- lib/wowr/classes.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.
412 413 414 415 416 |
# File 'lib/wowr/classes.rb', line 412 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.
410 411 412 |
# File 'lib/wowr/classes.rb', line 410 def haste_percent @haste_percent end |
#haste_rating ⇒ Object (readonly)
Returns the value of attribute haste_rating.
410 411 412 |
# File 'lib/wowr/classes.rb', line 410 def @haste_rating end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
410 411 412 |
# File 'lib/wowr/classes.rb', line 410 def value @value end |