Sha256: 0f6c5c39976cf8c13a938004fc2b1eb17e25c47f9f50fa1db7642a9c1f74643b

Contents?: true

Size: 336 Bytes

Versions: 3

Compression:

Stored size: 336 Bytes

Contents

# frozen_string_literal: true

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

3 entries across 3 versions & 1 rubygems

Version Path
mws-orders-0.4.0 lib/mws/orders/order_items.rb
mws-orders-0.3.1 lib/mws/orders/order_items.rb
mws-orders-0.3.0 lib/mws/orders/order_items.rb