Sha256: 2c871b1f33be6da3b8868f0ef23a4a1836b5f502806b98c78f83f9a8ed5f5cfe

Contents?: true

Size: 283 Bytes

Versions: 1

Compression:

Stored size: 283 Bytes

Contents

require 'mws/orders/collection'
require 'mws/orders/order'
require 'mws/orders/tokenable'

module MWS
  module Orders
    class Orders < Collection
      include Tokenable

      def each
        xpath('Orders/Order').map { |node| yield Order.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/orders.rb