Class: FIDIUS::NVDParserModel::Cvss_
- Inherits:
-
Object
- Object
- FIDIUS::NVDParserModel::Cvss_
- 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
-
#access_complexity ⇒ Object
Returns the value of attribute access_complexity.
-
#access_vector ⇒ Object
Returns the value of attribute access_vector.
-
#authentication ⇒ Object
Returns the value of attribute authentication.
-
#availability_impact ⇒ Object
Returns the value of attribute availability_impact.
-
#confidentiality_impact ⇒ Object
Returns the value of attribute confidentiality_impact.
-
#generated_on_datetime ⇒ Object
Returns the value of attribute generated_on_datetime.
-
#integrity_impact ⇒ Object
Returns the value of attribute integrity_impact.
-
#score ⇒ Object
Returns the value of attribute score.
-
#source ⇒ Object
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(params) ⇒ Cvss_
constructor
A new instance of Cvss_.
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_complexity ⇒ Object
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_vector ⇒ Object
Returns the value of attribute access_vector.
53 54 55 |
# File 'lib/cveparser/parser_model.rb', line 53 def access_vector @access_vector end |
#authentication ⇒ Object
Returns the value of attribute authentication.
53 54 55 |
# File 'lib/cveparser/parser_model.rb', line 53 def authentication @authentication end |
#availability_impact ⇒ Object
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_impact ⇒ Object
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_datetime ⇒ Object
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_impact ⇒ Object
Returns the value of attribute integrity_impact.
53 54 55 |
# File 'lib/cveparser/parser_model.rb', line 53 def integrity_impact @integrity_impact end |
#score ⇒ Object
Returns the value of attribute score.
53 54 55 |
# File 'lib/cveparser/parser_model.rb', line 53 def score @score end |
#source ⇒ Object
Returns the value of attribute source.
53 54 55 |
# File 'lib/cveparser/parser_model.rb', line 53 def source @source end |