Sha256: 3dddc57f26eaf1d6f4e9fc37ef6a1c45c8fc1ea1165219794700d99ebe3d0c90

Contents?: true

Size: 435 Bytes

Versions: 4

Compression:

Stored size: 435 Bytes

Contents

require 'peddler/parsers/collection'
require 'mws/feeds/parsers/feed_submission'

module MWS
  module Feeds
    module Parsers
      class FeedSubmissionList < ::Peddler::Parsers::Collection
        def each(&blk)
          feed_submission_nodes.each { |node| yield FeedSubmission.new(node) }
        end

        private

        def feed_submission_nodes
          xpath('FeedSubmissionInfo')
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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