Sha256: 72045efd3225d420ed747d5647309c6bf29f36c6ea3f91f7cd27463564c588d9
Contents?: true
Size: 704 Bytes
Versions: 1
Compression:
Stored size: 704 Bytes
Contents
class FIDIUS::CveDb::NvdEntry < FIDIUS::CveDb::CveConnection attr_accessible :cve, :cwe, :summary, :published, :last_modified, :cvss has_one :cvss has_one :mscve has_many :vulnerable_softwares has_many :vulnerable_configurations has_many :vulnerability_references validates_uniqueness_of :cve def references_string res = "" vulnerability_references.each_with_index do |reference, i| # http://www.foo-bar.de/sub/sub-sub -> www.foo-bar.de link_name = reference.link.scan(/(?:https?|s?ftp):\/\/([^\/]+)/).to_s res += "<a href=\"#{reference.link}\">#{link_name}</a>" res += " | " unless i == vulnerability_references.size-1 end res end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fidius-cvedb-0.0.8 | lib/models/fidius/cve_db/nvd_entry.rb |