Class: FIDIUS::NVDParserModel::NVDEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/cveparser/parser_model.rb

Overview

Represents an entry from nvd.nist.gov

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#cveObject

Returns the value of attribute cve.



13
14
15
# File 'lib/cveparser/parser_model.rb', line 13

def cve
  @cve
end

#cvssObject

Returns the value of attribute cvss.



13
14
15
# File 'lib/cveparser/parser_model.rb', line 13

def cvss
  @cvss
end

#cweObject

Returns the value of attribute cwe.



13
14
15
# File 'lib/cveparser/parser_model.rb', line 13

def cwe
  @cwe
end

#last_modified_datetimeObject

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_datetimeObject

Returns the value of attribute published_datetime.



13
14
15
# File 'lib/cveparser/parser_model.rb', line 13

def published_datetime
  @published_datetime
end

#referencesObject

Returns the value of attribute references.



13
14
15
# File 'lib/cveparser/parser_model.rb', line 13

def references
  @references
end

#summaryObject

Returns the value of attribute summary.



13
14
15
# File 'lib/cveparser/parser_model.rb', line 13

def summary
  @summary
end

#vulnerable_configurationsObject

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_softwareObject

Returns the value of attribute vulnerable_software.



13
14
15
# File 'lib/cveparser/parser_model.rb', line 13

def vulnerable_software
  @vulnerable_software
end