Class: CvssCli::Value

Inherits:
Object
  • Object
show all
Defined in:
lib/cvss_cli/value.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#descObject (readonly)

Returns the value of attribute desc.



4
5
6
# File 'lib/cvss_cli/value.rb', line 4

def desc
  @desc
end

#keyObject (readonly)

Returns the value of attribute key.



4
5
6
# File 'lib/cvss_cli/value.rb', line 4

def key
  @key
end

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/cvss_cli/value.rb', line 4

def name
  @name
end

#numericalObject (readonly)

Returns the value of attribute numerical.



4
5
6
# File 'lib/cvss_cli/value.rb', line 4

def numerical
  @numerical
end

#numerical_changedObject (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