Sha256: cfa8f8928417cf4c92e805344bc7480fde6f648459aef6759eda0af45187adaa

Contents?: true

Size: 419 Bytes

Versions: 2

Compression:

Stored size: 419 Bytes

Contents

require 'peddler/parsers/collection'
require 'mws/reports/parsers/report_info'

module MWS
  module Reports
    module Parsers
      class ReportAcknowledgements < ::Peddler::Parsers::Collection
        def each(&blk)
          report_info_nodes.each { |node| yield ReportInfo.new(node) }
        end

        private

        def report_info_nodes
          xpath('ReportInfo')
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
peddler-0.6.5 lib/mws/reports/parsers/report_acknowledgements.rb
peddler-0.6.4 lib/mws/reports/parsers/report_acknowledgements.rb