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

- (Cvss_) initialize(params)

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

- (Object) access_complexity

Returns the value of attribute access_complexity



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

def access_complexity
  @access_complexity
end

- (Object) access_vector

Returns the value of attribute access_vector



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

def access_vector
  @access_vector
end

- (Object) authentication

Returns the value of attribute authentication



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

def authentication
  @authentication
end

- (Object) availability_impact

Returns the value of attribute availability_impact



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

def availability_impact
  @availability_impact
end

- (Object) confidentiality_impact

Returns the value of attribute confidentiality_impact



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

def confidentiality_impact
  @confidentiality_impact
end

- (Object) generated_on_datetime

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

- (Object) integrity_impact

Returns the value of attribute integrity_impact



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

def integrity_impact
  @integrity_impact
end

- (Object) score

Returns the value of attribute score



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

def score
  @score
end

- (Object) source

Returns the value of attribute source



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

def source
  @source
end