Class: MWS::Orders::OrderItems

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

Overview

Instance Attribute Summary

Attributes inherited from Document

#node

Instance Method Summary collapse

Methods included from Tokenable

#next_token

Methods inherited from Collection

#attributes, #empty?, #inspect

Methods inherited from Document

#at_xpath, #initialize, #xpath

Constructor Details

This class inherits a constructor from MWS::Orders::Document

Instance Method Details

#eachObject



13
14
15
# File 'lib/mws/orders/order_items.rb', line 13

def each
  xpath('OrderItems/OrderItem').each { |node| yield OrderItem.new(node) }
end