Class: FIDIUS::NVDParserModel::NVDEntry
- Inherits:
-
Object
- Object
- FIDIUS::NVDParserModel::NVDEntry
- Defined in:
- lib/cveparser/parser_model.rb
Overview
Represents an entry from nvd.nist.gov
Instance Attribute Summary collapse
-
#cve ⇒ Object
Returns the value of attribute cve.
-
#cvss ⇒ Object
Returns the value of attribute cvss.
-
#cwe ⇒ Object
Returns the value of attribute cwe.
-
#last_modified_datetime ⇒ Object
Returns the value of attribute last_modified_datetime.
-
#published_datetime ⇒ Object
Returns the value of attribute published_datetime.
-
#references ⇒ Object
Returns the value of attribute references.
-
#summary ⇒ Object
Returns the value of attribute summary.
-
#vulnerable_configurations ⇒ Object
Returns the value of attribute vulnerable_configurations.
-
#vulnerable_software ⇒ Object
Returns the value of attribute vulnerable_software.
Instance Method Summary collapse
-
#initialize(params) ⇒ NVDEntry
constructor
A new instance of NVDEntry.
Constructor Details
#initialize(params) ⇒ NVDEntry
Returns a new instance of NVDEntry.
17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/cveparser/parser_model.rb', line 17 def initialize(params) @vulnerable_configurations = params[:vulnerable_configurations] @vulnerable_software = params[:vulnerable_software] @published_datetime = params[:published_datetime] @last_modified_datetime = params[:last_modified_datetime] @cvss = params[:cvss] @cve = params[:cve] @cwe = params[:cwe] @summary = params[:summary] @references = params[:references] end |
Instance Attribute Details
#cve ⇒ Object
Returns the value of attribute cve.
13 14 15 |
# File 'lib/cveparser/parser_model.rb', line 13 def cve @cve end |
#cvss ⇒ Object
Returns the value of attribute cvss.
13 14 15 |
# File 'lib/cveparser/parser_model.rb', line 13 def cvss @cvss end |
#cwe ⇒ Object
Returns the value of attribute cwe.
13 14 15 |
# File 'lib/cveparser/parser_model.rb', line 13 def cwe @cwe end |
#last_modified_datetime ⇒ Object
Returns the value of attribute last_modified_datetime.
13 14 15 |
# File 'lib/cveparser/parser_model.rb', line 13 def last_modified_datetime @last_modified_datetime end |
#published_datetime ⇒ Object
Returns the value of attribute published_datetime.
13 14 15 |
# File 'lib/cveparser/parser_model.rb', line 13 def published_datetime @published_datetime end |
#references ⇒ Object
Returns the value of attribute references.
13 14 15 |
# File 'lib/cveparser/parser_model.rb', line 13 def references @references end |
#summary ⇒ Object
Returns the value of attribute summary.
13 14 15 |
# File 'lib/cveparser/parser_model.rb', line 13 def summary @summary end |
#vulnerable_configurations ⇒ Object
Returns the value of attribute vulnerable_configurations.
13 14 15 |
# File 'lib/cveparser/parser_model.rb', line 13 def vulnerable_configurations @vulnerable_configurations end |
#vulnerable_software ⇒ Object
Returns the value of attribute vulnerable_software.
13 14 15 |
# File 'lib/cveparser/parser_model.rb', line 13 def vulnerable_software @vulnerable_software end |