Class: Wowr::Classes::CreatedItem
Overview
<item name=“Shadowprowler’s Chestguard” icon=“inv_chest_plate11” type=“Leather” level=“105” id=“33204” quality=“4”></item>
Instance Attribute Summary collapse
-
#level ⇒ Object
readonly
Returns the value of attribute level.
-
#quality ⇒ Object
readonly
Returns the value of attribute quality.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Attributes inherited from Item
Instance Method Summary collapse
-
#initialize(elem, api = nil) ⇒ CreatedItem
constructor
A new instance of CreatedItem.
Methods inherited from Item
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
#level ⇒ Object (readonly)
Returns the value of attribute level.
582 583 584 |
# File 'lib/wowr/item.rb', line 582 def level @level end |
#quality ⇒ Object (readonly)
Returns the value of attribute quality.
582 583 584 |
# File 'lib/wowr/item.rb', line 582 def quality @quality end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
582 583 584 |
# File 'lib/wowr/item.rb', line 582 def type @type end |