def find_vulns_by_ref(source, id)
      uri  = '/api/2.0/vulnerability_definitions'
      resp = AJAX.get(self,
                      uri,
                      AJAX::CONTENT_TYPE::JSON,
                      source: source, id: id)
      json = JSON.parse(resp, symbolize_names: true)
      json[:resources].map { |e| VulnerabilityDefinition.new.object_from_hash(self, e) }
    end
def find_vulns_by_ref(source, id)
      uri  = '/api/2.0/vulnerability_definitions'
      resp = AJAX.get(self,
                      uri,
                      AJAX::CONTENT_TYPE::JSON,
                      source: source, id: id)
      json = JSON.parse(resp, symbolize_names: true)
      json[:resources].map { |e| VulnerabilityDefinition.new.object_from_hash(self, e) }
    end
Search for any vulnerability definitions which refer to a given reference
 ID.

 Examples:
   find_vulns_by_ref('oval', 'OVAL10476')
   find_vulns_by_ref('bid', 35067)
   find_vulns_by_ref('secunia', 35188)

 @param [String] source External vulnerability reference source.
 @param [String] id Unique vulnerability reference ID.
 @return [Array[VulnerabilityDefinition]] A list of vuln definitions which
   check the vulnerability.