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.



464
465
466
467
468
469
470
# File 'lib/wowr/character.rb', line 464

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.



462
463
464
# File 'lib/wowr/character.rb', line 462

def dps
  @dps
end

#maxObject (readonly)

Returns the value of attribute max.



462
463
464
# File 'lib/wowr/character.rb', line 462

def max
  @max
end

#minObject (readonly)

Returns the value of attribute min.



462
463
464
# File 'lib/wowr/character.rb', line 462

def min
  @min
end

#percentObject (readonly)

Returns the value of attribute percent.



462
463
464
# File 'lib/wowr/character.rb', line 462

def percent
  @percent
end

#speedObject (readonly)

Returns the value of attribute speed.



462
463
464
# File 'lib/wowr/character.rb', line 462

def speed
  @speed
end