Class: Wowr::Classes::CreatedItem

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

Overview

<item name=“Shadowprowler’s Chestguard” icon=“inv_chest_plate11” type=“Leather” level=“105” id=“33204” quality=“4”></item>

Instance Attribute Summary collapse

Attributes inherited from Item

#icon_base, #id, #name

Instance Method Summary collapse

Methods inherited from Item

#icon

Constructor Details

#initialize(elem, api = nil) ⇒ CreatedItem

Returns a new instance of CreatedItem.



584
585
586
587
588
589
# File 'lib/wowr/item.rb', line 584

def initialize(elem, api = nil)
	super(elem, api)
	@type = elem[:type]
	@level = elem[:level].to_i
	@quality = elem[:quality].to_i
end

Instance Attribute Details

#levelObject (readonly)

Returns the value of attribute level.



582
583
584
# File 'lib/wowr/item.rb', line 582

def level
  @level
end

#qualityObject (readonly)

Returns the value of attribute quality.



582
583
584
# File 'lib/wowr/item.rb', line 582

def quality
  @quality
end

#typeObject (readonly)

Returns the value of attribute type.



582
583
584
# File 'lib/wowr/item.rb', line 582

def type
  @type
end