Class: Brakeman::Messages::CVE

Inherits:
Object
  • Object
show all
Defined in:
lib/brakeman/messages.rb

Instance Method Summary collapse

Constructor Details

#initialize(cve) ⇒ CVE

Returns a new instance of CVE.



118
119
120
# File 'lib/brakeman/messages.rb', line 118

def initialize cve
  @cve = cve
end

Instance Method Details

#to_htmlObject



126
127
128
# File 'lib/brakeman/messages.rb', line 126

def to_html
  "(<a href=\"https://cve.mitre.org/cgi-bin/cvename.cgi?name=#{@cve}\" target=\"_blank\" rel=\"noreferrer\">#{@cve}</a>)"
end

#to_sObject



122
123
124
# File 'lib/brakeman/messages.rb', line 122

def to_s
  "(#{@cve})"
end