Class: Wowr::Classes::ItemDamageData

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(elem) ⇒ ItemDamageData

Returns a new instance of ItemDamageData.



366
367
368
369
370
371
372
# File 'lib/wowr/item.rb', line 366

def initialize(elem)
	@type 	= (elem%'damage'%'type').html.to_i
	@min 		= (elem%'damage'%'min').html.to_i
	@max 		= (elem%'damage'%'max').html.to_i
	@speed 	= (elem%'speed').html.to_i
	@dps 		= (elem%'dps').html.to_f
end

Instance Attribute Details

#dpsObject (readonly)

Returns the value of attribute dps.



364
365
366
# File 'lib/wowr/item.rb', line 364

def dps
  @dps
end

#maxObject (readonly)

Returns the value of attribute max.



364
365
366
# File 'lib/wowr/item.rb', line 364

def max
  @max
end

#minObject (readonly)

Returns the value of attribute min.



364
365
366
# File 'lib/wowr/item.rb', line 364

def min
  @min
end

#speedObject (readonly)

Returns the value of attribute speed.



364
365
366
# File 'lib/wowr/item.rb', line 364

def speed
  @speed
end

#typeObject (readonly)

Returns the value of attribute type.



364
365
366
# File 'lib/wowr/item.rb', line 364

def type
  @type
end