Class: Wowr::Classes::PlanItem
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
-
#level ⇒ Object
readonly
Returns the value of attribute level.
-
#quality ⇒ Object
readonly
Returns the value of attribute quality.
-
#required_skill ⇒ Object
readonly
Returns the value of attribute required_skill.
-
#required_skill_rank ⇒ Object
readonly
Returns the value of attribute required_skill_rank.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Attributes inherited from Item
Instance Method Summary collapse
-
#initialize(elem, api = nil) ⇒ PlanItem
constructor
A new instance of PlanItem.
Methods inherited from Item
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
#level ⇒ Object (readonly)
Returns the value of attribute level.
594 595 596 |
# File 'lib/wowr/item.rb', line 594 def level @level end |
#quality ⇒ Object (readonly)
Returns the value of attribute quality.
594 595 596 |
# File 'lib/wowr/item.rb', line 594 def quality @quality end |
#required_skill ⇒ Object (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_rank ⇒ Object (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 |
#type ⇒ Object (readonly)
Returns the value of attribute type.
594 595 596 |
# File 'lib/wowr/item.rb', line 594 def type @type end |