Class: Wowr::Classes::SpellDamage
- Inherits:
-
Object
- Object
- Wowr::Classes::SpellDamage
- Defined in:
- lib/wowr/character.rb
Instance Attribute Summary collapse
-
#crit_chance_percent ⇒ Object
(also: #percent)
readonly
Returns the value of attribute crit_chance_percent.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(bonusDamage_elem, critChance_elem) ⇒ SpellDamage
constructor
A new instance of SpellDamage.
Constructor Details
#initialize(bonusDamage_elem, critChance_elem) ⇒ SpellDamage
Returns a new instance of SpellDamage.
562 563 564 565 |
# File 'lib/wowr/character.rb', line 562 def initialize(bonusDamage_elem, critChance_elem) @value = bonusDamage_elem[:value].to_i @crit_chance_percent = critChance_elem[:percent].to_f end |
Instance Attribute Details
#crit_chance_percent ⇒ Object (readonly) Also known as: percent
Returns the value of attribute crit_chance_percent.
559 560 561 |
# File 'lib/wowr/character.rb', line 559 def crit_chance_percent @crit_chance_percent end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
559 560 561 |
# File 'lib/wowr/character.rb', line 559 def value @value end |