Sha256: 45dad94196f4c5f6f1bea73769eea3cd1d32992618266bfed9181e36d92dc729

Contents?: true

Size: 503 Bytes

Versions: 6

Compression:

Stored size: 503 Bytes

Contents

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

module MWS
  module Orders
    module Parsers
      class PaymentExecutionDetail < ::Peddler::Parsers::Collection
        def each(&blk)
          payment_execution_detail_item_nodes.each { |node| yield PaymentExecutionDetailItem.new(node) }
        end

        private

        def payment_execution_detail_item_nodes
          xpath('PaymentExecutionDetailItem')
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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