Class: CvssCli::Value
- Inherits:
-
Object
- Object
- CvssCli::Value
- Defined in:
- lib/cvss_cli/value.rb
Instance Attribute Summary collapse
-
#desc ⇒ Object
readonly
Returns the value of attribute desc.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#numerical ⇒ Object
readonly
Returns the value of attribute numerical.
-
#numerical_changed ⇒ Object
readonly
Returns the value of attribute numerical_changed.
Instance Method Summary collapse
-
#initialize(key, name, desc, numerical, numerical_changed) ⇒ Value
constructor
A new instance of Value.
Constructor Details
#initialize(key, name, desc, numerical, numerical_changed) ⇒ Value
Returns a new instance of Value.
6 7 8 9 10 11 12 |
# File 'lib/cvss_cli/value.rb', line 6 def initialize(key, name, desc, numerical, numerical_changed) @key = key @name = name @desc = desc @numerical = numerical @numerical_changed = numerical_changed end |
Instance Attribute Details
#desc ⇒ Object (readonly)
Returns the value of attribute desc.
4 5 6 |
# File 'lib/cvss_cli/value.rb', line 4 def desc @desc end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
4 5 6 |
# File 'lib/cvss_cli/value.rb', line 4 def key @key end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/cvss_cli/value.rb', line 4 def name @name end |
#numerical ⇒ Object (readonly)
Returns the value of attribute numerical.
4 5 6 |
# File 'lib/cvss_cli/value.rb', line 4 def numerical @numerical end |
#numerical_changed ⇒ Object (readonly)
Returns the value of attribute numerical_changed.
4 5 6 |
# File 'lib/cvss_cli/value.rb', line 4 def numerical_changed @numerical_changed end |