Method: Threatinator::FeedBuilder#fetch_http

Defined in:
lib/threatinator/feed_builder.rb

#fetch_http(url, opts = {}) ⇒ Object



26
27
28
29
30
31
32
33
# File 'lib/threatinator/feed_builder.rb', line 26

def fetch_http(url, opts = {})
  opts[:url] = url
  @fetcher_builder = lambda do
    opts_dup = Marshal.load(Marshal.dump(opts))
    Threatinator::Fetchers::Http.new(opts_dup)
  end
  self
end