Class: Wowr::Classes::Resilience

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_percentObject (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_percentObject (readonly)

Returns the value of attribute hit_percent.



636
637
638
# File 'lib/wowr/character.rb', line 636

def hit_percent
  @hit_percent
end

#valueObject (readonly)

Returns the value of attribute value.



636
637
638
# File 'lib/wowr/character.rb', line 636

def value
  @value
end