Class: Wowr::Classes::Reagent

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

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

Returns a new instance of Reagent.



609
610
611
612
613
614
615
# File 'lib/wowr/item.rb', line 609

def initialize(elem, api = nil)
	super(elem, api)
	# @id = elem[:id].to_i
	# @name = elem[:name]
	# @icon = elem[:icon]
	@count = elem[:count].to_i
end

Instance Attribute Details

#countObject (readonly)

Returns the value of attribute count.



607
608
609
# File 'lib/wowr/item.rb', line 607

def count
  @count
end