Class: CertBot::MetaData

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(wid = nil, timestamp = nil) ⇒ MetaData

initialization

Parameters:

  • wid (String) (defaults to: nil)

    the id of the advisory

  • timestamp (Time) (defaults to: nil)

    the creation time of the advisory



151
152
153
154
# File 'lib/cert_bot/rss_handler.rb', line 151

def initialize(wid = nil, timestamp = nil)
  @wid = wid
  @timestamp = timestamp
end

Instance Attribute Details

#timestampTime

Returns the timestamp when the advisory was created.

Returns:

  • (Time)

    the timestamp when the advisory was created



146
147
148
# File 'lib/cert_bot/rss_handler.rb', line 146

def timestamp
  @timestamp
end

#widString

Returns the id of the advisory.

Returns:

  • (String)

    the id of the advisory



144
145
146
# File 'lib/cert_bot/rss_handler.rb', line 144

def wid
  @wid
end