Class: NVD::JSONFeeds::ZipFeedURI

Inherits:
FeedURI
  • Object
show all
Defined in:
lib/nvd/json_feeds/zip_feed_uri.rb

Overview

Represents a URI to a .json.zip feed file.

Constant Summary

Constants inherited from FeedURI

FeedURI::BASE_URI, FeedURI::SCHEMA_VERSION

Instance Attribute Summary

Attributes inherited from FeedURI

#ext, #filename, #name, #uri

Instance Method Summary collapse

Methods inherited from FeedURI

#get, #initialize, #inspect, #to_s, #to_uri

Constructor Details

This class inherits a constructor from NVD::JSONFeeds::FeedURI

Instance Method Details

#download(dest) ⇒ ZipFeedFile

Downloads the compressed feed file.

Parameters:

  • dest (String)

    The destination file or directory.

Returns:



19
20
21
# File 'lib/nvd/json_feeds/zip_feed_uri.rb', line 19

def download(dest)
  ZipFeedFile.new(super(dest))
end