Sha256: 15e3b8f26a7faf74ea1ce8a5c7f99b31ce6c02153b4b858751d8ac60907abbae

Contents?: true

Size: 305 Bytes

Versions: 1

Compression:

Stored size: 305 Bytes

Contents

require 'mws/orders/collection'
require 'mws/orders/order_item'
require 'mws/orders/tokenable'

module MWS
  module Orders
    class OrderItems < Collection
      include Tokenable

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mws-orders-0.2.2 lib/mws/orders/order_items.rb