Class: Cvssv2::Authentication

Inherits:
Object
  • Object
show all
Defined in:
lib/cvssv2/authentication.rb

Class Method Summary collapse

Class Method Details

.score(au) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
14
# File 'lib/cvssv2/authentication.rb', line 3

def self.score(au)
  case au
  when 'M'
    0.45
  when 'S'
    0.56
  when 'N'
    0.704
  else
    0
  end
end