Class: Wowr::Classes::ItemCreatedBy

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

Overview

<createdBy> <spell name=“Bracing Earthstorm Diamond” icon=“temp” id=“32867”> <item requiredSkill=“Jewelcrafting” name=“Design: Bracing Earthstorm Diamond” icon=“inv_scroll_03” type=“Jewelcrafting” level=“73” id=“25903” requiredSkillRank=“365” quality=“1”></item> <reagent name=“Earthstorm Diamond” icon=“inv_misc_gem_diamond_04” id=“25867” count=“1”></reagent> </spell> </createdBy>

Instance Attribute Summary

Attributes inherited from ItemCreation

#item, #reagents

Attributes inherited from Item

#icon_base, #id, #name

Instance Method Summary collapse

Methods inherited from Item

#icon

Constructor Details

#initialize(elem, api = nil) ⇒ ItemCreatedBy

Returns a new instance of ItemCreatedBy.



572
573
574
575
576
# File 'lib/wowr/item.rb', line 572

def initialize(elem, api = nil)
	super(elem, api)
	# TODO: Multiple items?
	@item = PlanItem.new(elem%'item') if (elem%'item')
end