lib/html2rss/item.rb in html2rss-0.13.0 vs lib/html2rss/item.rb in html2rss-0.14.0

- old
+ new

@@ -17,10 +17,10 @@ Enclosure = Struct.new('Enclosure', :type, :bits_length, :url, keyword_init: true) ## # Fetches items from a given URL using configuration settings. # - # @param url [String] URL to fetch items from. + # @param url [Addressable::URI] URL to fetch items from. # @param config [Html2rss::Config] Configuration object. # @return [Array<Html2rss::Item>] list of items fetched. def self.from_url(url, config) body = Utils.request_url(url, headers: config.headers).body body = ObjectToXmlConverter.new(JSON.parse(body)).call if config.json?