Class: Wowr::Classes::WeaponSpeed

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(elem) ⇒ WeaponSpeed

Returns a new instance of WeaponSpeed.



476
477
478
479
480
# File 'lib/wowr/character.rb', line 476

def initialize(elem)
	@haste_percent 	= elem[:hastePercent].to_f
	@haste_rating 	= elem[:hasteRating].to_f
	@value 				= elem[:value].to_f
end

Instance Attribute Details

#haste_percentObject (readonly)

Returns the value of attribute haste_percent.



474
475
476
# File 'lib/wowr/character.rb', line 474

def haste_percent
  @haste_percent
end

#haste_ratingObject (readonly)

Returns the value of attribute haste_rating.



474
475
476
# File 'lib/wowr/character.rb', line 474

def haste_rating
  @haste_rating
end

#valueObject (readonly)

Returns the value of attribute value.



474
475
476
# File 'lib/wowr/character.rb', line 474

def value
  @value
end