Class: Wowr::Classes::WeaponHitRating

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(elem) ⇒ WeaponHitRating

Returns a new instance of WeaponHitRating.



498
499
500
501
# File 'lib/wowr/character.rb', line 498

def initialize(elem)
	@increased_hit_percent 	= elem[:increasedHitPercent].to_f
	@value 									= elem[:value].to_f
end

Instance Attribute Details

#increased_hit_percentObject (readonly)

Returns the value of attribute increased_hit_percent.



496
497
498
# File 'lib/wowr/character.rb', line 496

def increased_hit_percent
  @increased_hit_percent
end

#valueObject (readonly)

Returns the value of attribute value.



496
497
498
# File 'lib/wowr/character.rb', line 496

def value
  @value
end