Method: Wowr::Classes::ItemCreation#initialize

Defined in:
lib/wowr/item.rb

#initialize(elem, api = nil) ⇒ 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