Sha256: 05eb8ad20fb3fe4f558e782d5acf79cb971ce7175ca332b206f1f44621e8e4fb

Contents?: true

Size: 537 Bytes

Versions: 2

Compression:

Stored size: 537 Bytes

Contents

require 'peddler/parsers/collection'
require 'mws/feeds/parsers/feed_submission_info'
require 'peddler/parsers/tokenable'

module MWS
  module Feeds
    module Parsers
      class FeedSubmissionList < ::Peddler::Parsers::Collection
        include ::Peddler::Parsers::Tokenable

        def each(&blk)
          feed_submission_info_nodes.each { |node| yield FeedSubmissionInfo.new(node) }
        end

        private

        def feed_submission_info_nodes
          xpath('FeedSubmissionInfo')
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
peddler-0.6.5 lib/mws/feeds/parsers/feed_submission_list.rb
peddler-0.6.4 lib/mws/feeds/parsers/feed_submission_list.rb