Sha256: 7ba871cff80d0231dfb79f2ea85774be088190f6be91d083430778520f3a958a

Contents?: true

Size: 386 Bytes

Versions: 4

Compression:

Stored size: 386 Bytes

Contents

require 'mws/orders/parsers/order'
require 'peddler/parsers/collection'

module MWS
  module Orders
    module Parsers
      class Orders < ::Peddler::Parsers::Collection
        extend Forwardable

        def_delegator :order_nodes, :each

        private

        def order_nodes
          xpath('Orders/Order').map { |node| Order.new(node) }
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
peddler-0.6.3 lib/mws/orders/parsers/orders.rb
peddler-0.6.2 lib/mws/orders/parsers/orders.rb
peddler-0.6.1 lib/mws/orders/parsers/orders.rb
peddler-0.6.0 lib/mws/orders/parsers/orders.rb