require 'peddler/request' require 'mws/feeds/parsers/feed' module MWS module Feeds module Requests class Feed < ::Peddler::Request def submit(content, type, options = {}) self.body = content set_content_type parameters(:submit_feed) .update(feed_type: type) .update(options) .format_structured_lists! .camelize_keys! execute end def set_content_type headers['Content-Type'] = if body.start_with?('