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.
496 497 498 499 500 501 502 503 504 505 |
# File 'lib/wowr/item.rb', line 496 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.
494 495 496 |
# File 'lib/wowr/item.rb', line 494 def item @item end |
#reagents ⇒ Object (readonly)
Returns the value of attribute reagents.
494 495 496 |
# File 'lib/wowr/item.rb', line 494 def reagents @reagents end |