Class: Wowr::Classes::ItemCreation
Overview
TODO rename There is some sort of opposite relationship between PlansFor and CreatedBy
Direct Known Subclasses
Instance Attribute Summary collapse
-
#item ⇒ Object
readonly
Returns the value of attribute item.
-
#reagents ⇒ Object
readonly
Returns the value of attribute reagents.
Attributes inherited from Item
Instance Method Summary collapse
-
#initialize(elem, api = nil) ⇒ ItemCreation
constructor
A new instance of ItemCreation.
Methods inherited from Item
Constructor Details
#initialize(elem, api = nil) ⇒ ItemCreation
Returns a new instance of ItemCreation.
537 538 539 540 541 542 543 544 545 546 |
# File 'lib/wowr/item.rb', line 537 def initialize(elem, api = nil) super(elem, api) if (elem%'reagent') @reagents = [] (elem/:reagent).each do |reagent| @reagents << Reagent.new(reagent, api) end end end |
Instance Attribute Details
#item ⇒ Object (readonly)
Returns the value of attribute item.
535 536 537 |
# File 'lib/wowr/item.rb', line 535 def item @item end |
#reagents ⇒ Object (readonly)
Returns the value of attribute reagents.
535 536 537 |
# File 'lib/wowr/item.rb', line 535 def reagents @reagents end |