Class: Dradis::Plugins::Calculators::CVSS::BaseController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/dradis/plugins/calculators/cvss/base_controller.rb

Overview

Does it matter that we’re inheriting from the no-frills controller?

Instance Method Summary collapse

Instance Method Details

#indexObject



4
5
6
7
8
# File 'app/controllers/dradis/plugins/calculators/cvss/base_controller.rb', line 4

def index
  @cvss3_vector = Hash.new { |h, k| h[k] = 'X' }
  @cvss4_vector = Dradis::Plugins::Calculators::CVSS::V4::DEFAULT_CVSS_V4.clone
  @cvss_version = '4.0'
end