Method: Fetchers::Url#initialize

Defined in:
lib/fetchers/url.rb

#initialize(url, opts) ⇒ Url

Returns a new instance of Url.



95
96
97
98
99
100
101
102
103
# File 'lib/fetchers/url.rb', line 95

def initialize(url, opts)
  @target = url.to_s
  @target_uri = url.is_a?(URI) ? url : parse_uri(url)
  @insecure = opts["insecure"]
  @token = opts["token"]
  @config = opts
  @archive_path = nil
  @temp_archive_path = nil
end