Class: EUVD::API::Downloads

Inherits:
Object
  • Object
show all
Defined in:
lib/euvd/api/downloads.rb

Overview

Access to bulk data download endpoints.

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Downloads

Returns a new instance of Downloads.



7
8
9
# File 'lib/euvd/api/downloads.rb', line 7

def initialize(client)
  @client = client
end

Instance Method Details

#cve_euvd_mappingString

GET /api/dump/cve-euvd-mapping Downloads the CVE-to-EUVD ID mapping as CSV.

Returns:

  • (String)

    Raw CSV data



15
16
17
# File 'lib/euvd/api/downloads.rb', line 15

def cve_euvd_mapping
  @client.get('dump/cve-euvd-mapping')
end

#kev_dumpString

GET /api/kev/dump Downloads the full KEV dump as JSON.

Returns:

  • (String)

    Raw JSON data



23
24
25
# File 'lib/euvd/api/downloads.rb', line 23

def kev_dump
  @client.get('kev/dump')
end