Class: MyPrecious::CVEs::CVERecord

Inherits:
String
  • Object
show all
Defined in:
lib/myprecious/cves.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, vendors, score) ⇒ CVERecord

Returns a new instance of CVERecord.



112
113
114
115
116
117
# File 'lib/myprecious/cves.rb', line 112

def initialize(id, vendors, score)
  super(id)
  
  @vendors = vendors
  @score = score
end

Instance Attribute Details

#scoreObject

Returns the value of attribute score.



119
120
121
# File 'lib/myprecious/cves.rb', line 119

def score
  @score
end

#vendorsObject

Returns the value of attribute vendors.



119
120
121
# File 'lib/myprecious/cves.rb', line 119

def vendors
  @vendors
end