lib/spyse/clients/cve.rb in spysex-0.1.0 vs lib/spyse/clients/cve.rb in spysex-0.2.0
- old
+ new
@@ -6,30 +6,15 @@
#
# Lists CVE
#
# @see https://spyse.com/api#/cve/cve
#
- # @return [Hash]
+ # @param [String] cve_id MITRE CVE unique identifier.
#
- def get(cve_id, limit: nil, offset: nil)
- params = {
- cve_id: cve_id, limit: limit, offset: offset,
- }.compact
- _get("/cve", params) { |json| json }
- end
-
- #
- # Lists IPs, that vulnerable by provided CVE
- #
- # @see https://spyse.com/api#/cve/vulnerable_ip_by_cve
- #
# @return [Hash]
#
- def vulnerable_ip(cve, limit: nil, offset: nil)
- params = {
- cve: cve, limit: limit, offset: offset,
- }.compact
- _get("/cve/vulnerable-ip", params) { |json| json }
+ def get(cve_id)
+ _get("/cve/#{cve_id}") { |json| json }
end
#
# Lists CVEs
#