Class: Wowr::Classes::Reagent
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) ⇒ Reagent
constructor
A new instance of Reagent.
Methods inherited from Item
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
#count ⇒ Object (readonly)
Returns the value of attribute count.
607 608 609 |
# File 'lib/wowr/item.rb', line 607 def count @count end |