require 'youtube_to_rss/version' require 'httparty' module YoutubeToRss include HTTParty class << self def convert(url) retrieve_rss_url(get_parsed_response(url)) end private def get_parsed_response(url) get(url).parsed_response end def retrieve_rss_url(parsed_response) parsed_response.split('"rssUrl":"').last.split('",').first end end end