Class: Wowr::Classes::WeaponHitRating
- Inherits:
-
Object
- Object
- Wowr::Classes::WeaponHitRating
- Defined in:
- lib/wowr/character.rb
Instance Attribute Summary collapse
-
#increased_hit_percent ⇒ Object
readonly
Returns the value of attribute increased_hit_percent.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(elem) ⇒ WeaponHitRating
constructor
A new instance of WeaponHitRating.
Constructor Details
#initialize(elem) ⇒ WeaponHitRating
Returns a new instance of WeaponHitRating.
498 499 500 501 |
# File 'lib/wowr/character.rb', line 498 def initialize(elem) @increased_hit_percent = elem[:increasedHitPercent].to_f @value = elem[:value].to_f end |
Instance Attribute Details
#increased_hit_percent ⇒ Object (readonly)
Returns the value of attribute increased_hit_percent.
496 497 498 |
# File 'lib/wowr/character.rb', line 496 def increased_hit_percent @increased_hit_percent end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
496 497 498 |
# File 'lib/wowr/character.rb', line 496 def value @value end |