Method: Nmap::XML::CPE::URL#to_s

Defined in:
lib/nmap/xml/cpe/url.rb

#to_sString

Converts the CPE URL back into a String.

Returns:

  • (String)

    The raw CPE URL.

Since:

  • 1.0.0



67
68
69
70
71
72
73
74
75
76
77
# File 'lib/nmap/xml/cpe/url.rb', line 67

def to_s
  'cpe:' + [
    PARTS.invert[part],
    vendor,
    product,
    version,
    update,
    edition,
    language
  ].compact.join(':')
end