Class: Wowr::Classes::ItemDamageData

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(elem) ⇒ ItemDamageData

Returns a new instance of ItemDamageData.



937
938
939
940
941
942
943
# File 'lib/wowr/classes.rb', line 937

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.



935
936
937
# File 'lib/wowr/classes.rb', line 935

def dps
  @dps
end

#maxObject (readonly)

Returns the value of attribute max.



935
936
937
# File 'lib/wowr/classes.rb', line 935

def max
  @max
end

#minObject (readonly)

Returns the value of attribute min.



935
936
937
# File 'lib/wowr/classes.rb', line 935

def min
  @min
end

#speedObject (readonly)

Returns the value of attribute speed.



935
936
937
# File 'lib/wowr/classes.rb', line 935

def speed
  @speed
end

#typeObject (readonly)

Returns the value of attribute type.



935
936
937
# File 'lib/wowr/classes.rb', line 935

def type
  @type
end