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.



315
316
317
318
319
# File 'lib/wowr/item.rb', line 315

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.



313
314
315
# File 'lib/wowr/item.rb', line 313

def container_slots
  @container_slots
end

#inventory_typeObject (readonly)

Returns the value of attribute inventory_type.



313
314
315
# File 'lib/wowr/item.rb', line 313

def inventory_type
  @inventory_type
end

#subclass_nameObject (readonly)

Returns the value of attribute subclass_name.



313
314
315
# File 'lib/wowr/item.rb', line 313

def subclass_name
  @subclass_name
end