wrapped in nvd_tools module

This commit is contained in:
booboy 2019-05-12 20:34:52 -05:00
parent edb87d3148
commit 07ba0f4fc9
2 changed files with 53 additions and 48 deletions

View file

@ -1,8 +1,10 @@
require 'rest-client'
require 'zlib'
require 'json'
require '../modules/nvd_tools'
class NvdDownloader
module NvdTools
class NvdDownloader
attr_accessor :version, :base_url, :base_filename, :years, :filenames_json
MIN_YEAR = '2002'
@ -77,4 +79,5 @@ class NvdDownloader
# run the check_metafile method against the current metafile on disk.
# if there is a change, return true, if not return false
end
end
end

2
modules/nvd_tools.rb Normal file
View file

@ -0,0 +1,2 @@
module NvdTools
end