Class: Wowr::Classes::ItemCostToken

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

Overview

<token icon=“spell_holy_championsbond” id=“29434” count=“60”></token>

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) ⇒ 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

#countObject (readonly)

Returns the value of attribute count.



482
483
484
# File 'lib/wowr/item.rb', line 482

def count
  @count
end