Module: NVD::JSONFeeds

Defined in:
lib/nvd/json_feeds.rb,
lib/nvd/json_feeds/feed.rb,
lib/nvd/json_feeds/meta.rb,
lib/nvd/json_feeds/version.rb,
lib/nvd/json_feeds/feed_uri.rb,
lib/nvd/json_feeds/feed_file.rb,
lib/nvd/json_feeds/exceptions.rb,
lib/nvd/json_feeds/gz_feed_uri.rb,
lib/nvd/json_feeds/gz_feed_file.rb,
lib/nvd/json_feeds/zip_feed_uri.rb,
lib/nvd/json_feeds/meta_feed_uri.rb,
lib/nvd/json_feeds/schema/impact.rb,
lib/nvd/json_feeds/zip_feed_file.rb,
lib/nvd/json_feeds/json_feed_file.rb,
lib/nvd/json_feeds/schema/cvss_v2.rb,
lib/nvd/json_feeds/schema/cvss_v3.rb,
lib/nvd/json_feeds/schema/cpe/name.rb,
lib/nvd/json_feeds/schema/cve_feed.rb,
lib/nvd/json_feeds/schema/cve_item.rb,
lib/nvd/json_feeds/schema/cpe/match.rb,
lib/nvd/json_feeds/schema/timestamp.rb,
lib/nvd/json_feeds/schema/cpe/has_uri.rb,
lib/nvd/json_feeds/schema/configurations.rb,
lib/nvd/json_feeds/schema/has_data_version.rb,
lib/nvd/json_feeds/schema/configurations/node.rb,
lib/nvd/json_feeds/schema/impact/base_metric_v2.rb,
lib/nvd/json_feeds/schema/impact/base_metric_v3.rb

Defined Under Namespace

Modules: Schema Classes: ExtractFailed, Feed, FeedFile, FeedFileError, FeedURI, GzFeedFile, GzFeedURI, JSONFeedFile, Meta, MetaFeedURI, MetaParseError, ReadFailed, ZipFeedFile, ZipFeedURI

Constant Summary collapse

FEEDS =
Hash[[:modified, :recent, *(2002 .. Date.today.year)]
VERSION =

nvd-json_feeds version

"0.1.0"

Class Method Summary collapse

Class Method Details

.[](name) ⇒ Feed?

Accesses a feed with the given name or year number.

Parameters:

  • name (:modified, :recent, Integer)

    The feed name or year number.

Returns:

  • (Feed, nil)

    The feed.



21
22
23
# File 'lib/nvd/json_feeds.rb', line 21

def self.[](name)
  FEEDS[name]
end