Sha256: 7ccac85fc2e6a6a05d0105dc604b0b82a3a33a6f0763f1e86ac1df184879f87b

Contents?: true

Size: 535 Bytes

Versions: 2

Compression:

Stored size: 535 Bytes

Contents

require 'peddler/parsers/collection'
require 'mws/reports/parsers/report_request_info'
require 'peddler/parsers/tokenable'

module MWS
  module Reports
    module Parsers
      class ReportRequestList < ::Peddler::Parsers::Collection
        include ::Peddler::Parsers::Tokenable

        def each(&blk)
          report_request_info_nodes.each { |node| yield ReportRequestInfo.new(node) }
        end

        private

        def report_request_info_nodes
          xpath('ReportRequestInfo')
        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_request_list.rb
peddler-0.6.4 lib/mws/reports/parsers/report_request_list.rb