Class: Wowr::Classes::Defenses

Inherits:
Object
  • Object
show all
Defined in:
lib/wowr/character.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#armorObject (readonly)

Returns the value of attribute armor.



590
591
592
# File 'lib/wowr/character.rb', line 590

def armor
  @armor
end

#blockObject (readonly)

Returns the value of attribute block.



590
591
592
# File 'lib/wowr/character.rb', line 590

def block
  @block
end

#defenseObject (readonly)

Returns the value of attribute defense.



590
591
592
# File 'lib/wowr/character.rb', line 590

def defense
  @defense
end

#dodgeObject (readonly)

Returns the value of attribute dodge.



590
591
592
# File 'lib/wowr/character.rb', line 590

def dodge
  @dodge
end

#parryObject (readonly)

Returns the value of attribute parry.



590
591
592
# File 'lib/wowr/character.rb', line 590

def parry
  @parry
end

#resilienceObject (readonly)

Returns the value of attribute resilience.



590
591
592
# File 'lib/wowr/character.rb', line 590

def resilience
  @resilience
end