Sha256: d1fc9545ef49bb52a021faee84ef90b440c703a7450f9f7f595cd708ad284d8a

Contents?: true

Size: 301 Bytes

Versions: 2

Compression:

Stored size: 301 Bytes

Contents

module MWS
  module Orders
    module Parser
      class OrderItems < Collection
        def each(&blk)
          order_item_nodes.each { |node| yield OrderItem.new(node) }
        end

        private

        def order_item_nodes
          xpath('OrderItem')
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mws-orders-0.0.2 lib/mws/orders/parsers/order_items.rb
mws-orders-0.0.1 lib/mws/orders/parsers/order_items.rb