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.



660
661
662
663
664
# File 'lib/wowr/character.rb', line 660

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.



658
659
660
# File 'lib/wowr/character.rb', line 658

def damage_percent
  @damage_percent
end

#hit_percentObject (readonly)

Returns the value of attribute hit_percent.



658
659
660
# File 'lib/wowr/character.rb', line 658

def hit_percent
  @hit_percent
end

#valueObject (readonly)

Returns the value of attribute value.



658
659
660
# File 'lib/wowr/character.rb', line 658

def value
  @value
end