Method: Html2rss::AutoSource#initialize

Defined in:
lib/html2rss/auto_source.rb

#initialize(url, body:, headers: {}) ⇒ AutoSource

Returns a new instance of AutoSource.

Parameters:

  • url (Addressable::URI)

    The URL to extract articles from.

  • body (String)

    The body of the response.

  • headers (Hash) (defaults to: {})

    The headers of the response.



20
21
22
23
24
# File 'lib/html2rss/auto_source.rb', line 20

def initialize(url, body:, headers: {})
  @url = url
  @body = body
  @headers = headers
end