Class: Wowr::Classes::ItemEquipData
- Inherits:
-
Object
- Object
- Wowr::Classes::ItemEquipData
- Defined in:
- lib/wowr/item.rb
Instance Attribute Summary collapse
-
#container_slots ⇒ Object
readonly
Returns the value of attribute container_slots.
-
#inventory_type ⇒ Object
readonly
Returns the value of attribute inventory_type.
-
#subclass_name ⇒ Object
readonly
Returns the value of attribute subclass_name.
Instance Method Summary collapse
-
#initialize(elem) ⇒ ItemEquipData
constructor
A new instance of ItemEquipData.
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_slots ⇒ Object (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_type ⇒ Object (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_name ⇒ Object (readonly)
Returns the value of attribute subclass_name.
313 314 315 |
# File 'lib/wowr/item.rb', line 313 def subclass_name @subclass_name end |