Module: Cvss::Parser
- Included in:
- Engine
- Defined in:
- lib/cvss/parser.rb
Instance Attribute Summary collapse
-
#base ⇒ Object
readonly
Returns the value of attribute base.
Instance Method Summary collapse
-
#parse(string) ⇒ Object
It parses a string and it says if it’s a good CVSS vector or not.
Instance Attribute Details
#base ⇒ Object (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 |