Class: Wowr::Classes::WeaponDamage

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(elem) ⇒ WeaponDamage

Returns a new instance of WeaponDamage.



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

def initialize(elem)
	@dps 			= elem[:dps].to_f
	@max 			= elem[:max].to_i
	@min 			= elem[:min].to_i
	@percent 	= elem[:percent].to_f
	@speed 	= elem[:speed].to_f
end

Instance Attribute Details

#dpsObject (readonly)

Returns the value of attribute dps.



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

def dps
  @dps
end

#maxObject (readonly)

Returns the value of attribute max.



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

def max
  @max
end

#minObject (readonly)

Returns the value of attribute min.



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

def min
  @min
end

#percentObject (readonly)

Returns the value of attribute percent.



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

def percent
  @percent
end

#speedObject (readonly)

Returns the value of attribute speed.



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

def speed
  @speed
end