Sha256: 9c0dd20e5799a9303a1d88b8bc09858d5da793803fb34f756afd84ab76aa46a7

Contents?: true

Size: 311 Bytes

Versions: 4

Compression:

Stored size: 311 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(&blk)
        xpath("OrderItems/OrderItem").each { |node| yield OrderItem.new(node) }
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mws-orders-0.2.1 lib/mws/orders/order_items.rb
mws-orders-0.2.0 lib/mws/orders/order_items.rb
mws-orders-0.1.1 lib/mws/orders/order_items.rb
mws-orders-0.1.0 lib/mws/orders/order_items.rb