Class: Wowr::Classes::Resilience
- Inherits:
-
Object
- Object
- Wowr::Classes::Resilience
- Defined in:
- lib/wowr/character.rb
Instance Attribute Summary collapse
-
#damage_percent ⇒ Object
readonly
Returns the value of attribute damage_percent.
-
#hit_percent ⇒ Object
readonly
Returns the value of attribute hit_percent.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(elem) ⇒ Resilience
constructor
A new instance of Resilience.
Constructor Details
#initialize(elem) ⇒ Resilience
Returns a new instance of Resilience.
638 639 640 641 642 |
# File 'lib/wowr/character.rb', line 638 def initialize(elem) @damage_percent = elem[:damagePercent].to_f @hit_percent = elem[:hitPercent].to_f @value = elem[:value].to_f end |
Instance Attribute Details
#damage_percent ⇒ Object (readonly)
Returns the value of attribute damage_percent.
636 637 638 |
# File 'lib/wowr/character.rb', line 636 def damage_percent @damage_percent end |
#hit_percent ⇒ Object (readonly)
Returns the value of attribute hit_percent.
636 637 638 |
# File 'lib/wowr/character.rb', line 636 def hit_percent @hit_percent end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
636 637 638 |
# File 'lib/wowr/character.rb', line 636 def value @value end |