Class: Wowr::Classes::PlanItem

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

Overview

<item requiredSkill=“Jewelcrafting” name=“Design: Bracing Earthstorm Diamond” icon=“inv_scroll_03” type=“Jewelcrafting” level=“73” id=“25903” requiredSkillRank=“365” quality=“1”></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) ⇒ PlanItem

Returns a new instance of PlanItem.



596
597
598
599
600
601
602
603
# File 'lib/wowr/item.rb', line 596

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

Instance Attribute Details

#levelObject (readonly)

Returns the value of attribute level.



594
595
596
# File 'lib/wowr/item.rb', line 594

def level
  @level
end

#qualityObject (readonly)

Returns the value of attribute quality.



594
595
596
# File 'lib/wowr/item.rb', line 594

def quality
  @quality
end

#required_skillObject (readonly)

Returns the value of attribute required_skill.



594
595
596
# File 'lib/wowr/item.rb', line 594

def required_skill
  @required_skill
end

#required_skill_rankObject (readonly)

Returns the value of attribute required_skill_rank.



594
595
596
# File 'lib/wowr/item.rb', line 594

def required_skill_rank
  @required_skill_rank
end

#typeObject (readonly)

Returns the value of attribute type.



594
595
596
# File 'lib/wowr/item.rb', line 594

def type
  @type
end