Module: Cvss::Parser

Included in:
Engine
Defined in:
lib/cvss/parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#baseObject (readonly)

Returns the value of attribute base.



4
5
6
# File 'lib/cvss/parser.rb', line 4

def base
  @base
end

Instance Method Details

#parse(string) ⇒ Object

It parses a string and it says if it’s a good CVSS vector or not.



7
8
9
10
11
12
# File 'lib/cvss/parser.rb', line 7

def parse(string)
  @base = {}

  toks = string.split("/")
  return parse_base(toks)
end