Class: CertBot::MetaData
- Inherits:
-
Object
- Object
- CertBot::MetaData
- Defined in:
- lib/cert_bot/rss_handler.rb
Overview
Helper data class to store identifying information for a advisory into an object
Instance Attribute Summary collapse
-
#timestamp ⇒ Time
The timestamp when the advisory was created.
-
#wid ⇒ String
The id of the advisory.
Instance Method Summary collapse
-
#initialize(wid = nil, timestamp = nil) ⇒ MetaData
constructor
initialization.
Constructor Details
#initialize(wid = nil, timestamp = nil) ⇒ MetaData
initialization
151 152 153 154 |
# File 'lib/cert_bot/rss_handler.rb', line 151 def initialize(wid = nil, = nil) @wid = wid @timestamp = end |
Instance Attribute Details
#timestamp ⇒ Time
Returns the timestamp when the advisory was created.
146 147 148 |
# File 'lib/cert_bot/rss_handler.rb', line 146 def @timestamp end |
#wid ⇒ String
Returns the id of the advisory.
144 145 146 |
# File 'lib/cert_bot/rss_handler.rb', line 144 def wid @wid end |