Class: FIDIUS::NVDParserModel::Cvss_

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

Overview

Contains all fields of an CVSS-Score Underscore is needed because there is an rails model with the same name

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ Cvss_

Returns a new instance of Cvss_.



57
58
59
60
61
62
63
64
65
66
67
# File 'lib/cveparser/parser_model.rb', line 57

def initialize(params)
  @source         = params[:source]
  @score          = params[:score]
  @access_vector  = params[:access_vector]
  @authentication = params[:authentication]
  @access_complexity      = params[:access_complexity]
  @integrity_impact       = params[:integrity_impact]
  @availability_impact    = params[:availability_impact]
  @confidentiality_impact = params[:confidentiality_impact]
  @generated_on_datetime  = params[:generated_on_datetime]
end

Instance Attribute Details

#access_complexityObject

Returns the value of attribute access_complexity.



53
54
55
# File 'lib/cveparser/parser_model.rb', line 53

def access_complexity
  @access_complexity
end

#access_vectorObject

Returns the value of attribute access_vector.



53
54
55
# File 'lib/cveparser/parser_model.rb', line 53

def access_vector
  @access_vector
end

#authenticationObject

Returns the value of attribute authentication.



53
54
55
# File 'lib/cveparser/parser_model.rb', line 53

def authentication
  @authentication
end

#availability_impactObject

Returns the value of attribute availability_impact.



53
54
55
# File 'lib/cveparser/parser_model.rb', line 53

def availability_impact
  @availability_impact
end

#confidentiality_impactObject

Returns the value of attribute confidentiality_impact.



53
54
55
# File 'lib/cveparser/parser_model.rb', line 53

def confidentiality_impact
  @confidentiality_impact
end

#generated_on_datetimeObject

Returns the value of attribute generated_on_datetime.



53
54
55
# File 'lib/cveparser/parser_model.rb', line 53

def generated_on_datetime
  @generated_on_datetime
end

#integrity_impactObject

Returns the value of attribute integrity_impact.



53
54
55
# File 'lib/cveparser/parser_model.rb', line 53

def integrity_impact
  @integrity_impact
end

#scoreObject

Returns the value of attribute score.



53
54
55
# File 'lib/cveparser/parser_model.rb', line 53

def score
  @score
end

#sourceObject

Returns the value of attribute source.



53
54
55
# File 'lib/cveparser/parser_model.rb', line 53

def source
  @source
end