Class: Wowr::Classes::ItemEquipData

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(elem) ⇒ ItemEquipData

Returns a new instance of ItemEquipData.



274
275
276
277
278
# File 'lib/wowr/item.rb', line 274

def initialize(elem)
	@inventory_type = (elem%'inventoryType').html.to_i
	@subclass_name = (elem%'subclassName').html if (elem%'subclassName')
	@container_slots = (elem%'containerSlots').html.to_i if (elem%'containerSlots') # for baggies
end

Instance Attribute Details

#container_slotsObject (readonly)

Returns the value of attribute container_slots.



272
273
274
# File 'lib/wowr/item.rb', line 272

def container_slots
  @container_slots
end

#inventory_typeObject (readonly)

Returns the value of attribute inventory_type.



272
273
274
# File 'lib/wowr/item.rb', line 272

def inventory_type
  @inventory_type
end

#subclass_nameObject (readonly)

Returns the value of attribute subclass_name.



272
273
274
# File 'lib/wowr/item.rb', line 272

def subclass_name
  @subclass_name
end