module FilescanApi::Client::Scan
Public Instance Methods
check_file(file)
click to toggle source
# File lib/filescan-api/client/scan.rb, line 8 def check_file(file) payload = { file: Faraday::UploadIO.new(file.path, MIME::Types.of(file.path).first.content_type) } resp = @connection.post("projects/#{@project_id}/scans", payload) Oj.load(resp.body)['data'] end
scan_report(scan_id)
click to toggle source
# File lib/filescan-api/client/scan.rb, line 14 def scan_report(scan_id) resp = @connection.get("projects/#{project_id}/scans/#{scan_id}") Oj.load(resp.body)['data'] end