Class: MWS::Orders::Parsers::OrderItems

Inherits:
Peddler::Parsers::Collection show all
Includes:
Peddler::Parsers::Tokenable
Defined in:
lib/mws/orders/parsers/order_items.rb

Instance Attribute Summary

Attributes inherited from Peddler::Parsers::Base

#document

Instance Method Summary collapse

Methods included from Peddler::Parsers::Tokenable

#has_next_token?, #next_token

Methods inherited from Peddler::Parsers::Collection

#empty?, #inspect

Methods inherited from Peddler::Parsers::XML

#at_xpath, #text_at_xpath, xml?, #xpath

Methods inherited from Peddler::Parsers::Base

#initialize, xml?

Constructor Details

This class inherits a constructor from Peddler::Parsers::Base

Instance Method Details

#each(&blk) ⇒ Object



11
12
13
# File 'lib/mws/orders/parsers/order_items.rb', line 11

def each(&blk)
  order_item_nodes.each { |node| yield OrderItem.new(node) }
end