def all_vulns
      uri  = '/api/2.0/vulnerability_definitions'
      resp = AJAX.get(self, uri, AJAX::CONTENT_TYPE::JSON, per_page: 2_147_483_647)
      json = JSON.parse(resp, symbolize_names: true)
      json[:resources].map { |e| VulnerabilityDefinition.new.object_from_hash(self, e) }
    end
def all_vulns
      uri  = '/api/2.0/vulnerability_definitions'
      resp = AJAX.get(self, uri, AJAX::CONTENT_TYPE::JSON, per_page: 2_147_483_647)
      json = JSON.parse(resp, symbolize_names: true)
      json[:resources].map { |e| VulnerabilityDefinition.new.object_from_hash(self, e) }
    end
Retrieve all vulnerability definitions currently in a Nexpose console.

 Note, this can easily take 30 seconds to complete and will load over
 55,000 vulnerability definitions.

 @return [Array[VulnerabilityDefinition]] Collection of vulnerability definitions.