Sha256: 28585710d2ca44da4a9232759a84129e4afabda6785cda3edec127c8ff7c0aec
Contents?: true
Size: 477 Bytes
Versions: 18
Compression:
Stored size: 477 Bytes
Contents
module CC::Service::VulnerabilityHelper def vulnerability vulnerabilities.first || {} end def vulnerabilities payload.fetch("vulnerabilities", []) end def multiple? vulnerabilities.size > 1 end def location_info if vulnerability["location"] " in #{vulnerability["location"]}" else "" end end def warning_type if multiple? payload["warning_type"] else vulnerability["warning_type"] end end end
Version data entries
18 entries across 18 versions & 1 rubygems