Class: NVD::JSONFeeds::Feed
- Inherits:
-
Object
- Object
- NVD::JSONFeeds::Feed
- Defined in:
- lib/nvd/json_feeds/feed.rb
Overview
Represents a feed and it's various downloads.
Instance Attribute Summary collapse
-
#gz ⇒ GzFeedURI
readonly
The ".gz" feed URI.
-
#meta ⇒ MetaFeedURI
readonly
The "meta" feed URI.
-
#name ⇒ :modified, ...
readonly
The feed name or year number.
-
#zip ⇒ ZipFeedURI
readonly
The ".zip" feed URI.
Instance Method Summary collapse
-
#initialize(name) ⇒ Feed
constructor
Initializes the feed.
Constructor Details
#initialize(name) ⇒ Feed
Initializes the feed.
40 41 42 43 44 45 46 |
# File 'lib/nvd/json_feeds/feed.rb', line 40 def initialize(name) @name = name @meta = MetaFeedURI.new(@name,'.meta') @gz = GzFeedURI.new(@name,'.json.gz') @zip = ZipFeedURI.new(@name,'.json.zip') end |
Instance Attribute Details
#gz ⇒ GzFeedURI (readonly)
The ".gz" feed URI.
27 28 29 |
# File 'lib/nvd/json_feeds/feed.rb', line 27 def gz @gz end |
#meta ⇒ MetaFeedURI (readonly)
The "meta" feed URI.
22 23 24 |
# File 'lib/nvd/json_feeds/feed.rb', line 22 def @meta end |
#name ⇒ :modified, ... (readonly)
The feed name or year number.
17 18 19 |
# File 'lib/nvd/json_feeds/feed.rb', line 17 def name @name end |
#zip ⇒ ZipFeedURI (readonly)
The ".zip" feed URI.
32 33 34 |
# File 'lib/nvd/json_feeds/feed.rb', line 32 def zip @zip end |