Class: Wowr::Classes::ItemCostToken
Overview
<token icon=“spell_holy_championsbond” id=“29434” count=“60”></token>
Instance Attribute Summary collapse
-
#count ⇒ Object
readonly
Returns the value of attribute count.
Attributes inherited from Item
Instance Method Summary collapse
-
#initialize(elem, api = nil) ⇒ ItemCostToken
constructor
A new instance of ItemCostToken.
Methods inherited from Item
Constructor Details
#initialize(elem, api = nil) ⇒ ItemCostToken
Returns a new instance of ItemCostToken.
484 485 486 487 488 489 |
# File 'lib/wowr/item.rb', line 484 def initialize(elem, api = nil) super(elem) # @id = elem[:id].to_i # @icon_bse = elem[:icon] @count = elem[:count].to_i end |
Instance Attribute Details
#count ⇒ Object (readonly)
Returns the value of attribute count.
482 483 484 |
# File 'lib/wowr/item.rb', line 482 def count @count end |