Class: Wowr::Classes::Defenses
- Inherits:
-
Object
- Object
- Wowr::Classes::Defenses
- Defined in:
- lib/wowr/character.rb
Instance Attribute Summary collapse
-
#armor ⇒ Object
readonly
Returns the value of attribute armor.
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#defense ⇒ Object
readonly
Returns the value of attribute defense.
-
#dodge ⇒ Object
readonly
Returns the value of attribute dodge.
-
#parry ⇒ Object
readonly
Returns the value of attribute parry.
-
#resilience ⇒ Object
readonly
Returns the value of attribute resilience.
Instance Method Summary collapse
-
#initialize(elem) ⇒ Defenses
constructor
A new instance of Defenses.
Constructor Details
#initialize(elem) ⇒ Defenses
Returns a new instance of Defenses.
592 593 594 595 596 597 598 599 |
# File 'lib/wowr/character.rb', line 592 def initialize(elem) @armor = Armor.new(elem%'armor') @defense = Defense.new(elem%'defense') @dodge = DodgeParryBlock.new(elem%'dodge') @parry = DodgeParryBlock.new(elem%'parry') @block = DodgeParryBlock.new(elem%'block') @resilience = Resilience.new(elem%'resilience') end |
Instance Attribute Details
#armor ⇒ Object (readonly)
Returns the value of attribute armor.
590 591 592 |
# File 'lib/wowr/character.rb', line 590 def armor @armor end |
#block ⇒ Object (readonly)
Returns the value of attribute block.
590 591 592 |
# File 'lib/wowr/character.rb', line 590 def block @block end |
#defense ⇒ Object (readonly)
Returns the value of attribute defense.
590 591 592 |
# File 'lib/wowr/character.rb', line 590 def defense @defense end |
#dodge ⇒ Object (readonly)
Returns the value of attribute dodge.
590 591 592 |
# File 'lib/wowr/character.rb', line 590 def dodge @dodge end |
#parry ⇒ Object (readonly)
Returns the value of attribute parry.
590 591 592 |
# File 'lib/wowr/character.rb', line 590 def parry @parry end |
#resilience ⇒ Object (readonly)
Returns the value of attribute resilience.
590 591 592 |
# File 'lib/wowr/character.rb', line 590 def resilience @resilience end |