Sha256: b74ca6b380f06faf01e817b1b01404394839b131aafd92bc3c6692bdfb833f2d
Contents?: true
Size: 644 Bytes
Versions: 1
Compression:
Stored size: 644 Bytes
Contents
# frozen_string_literal: true require_relative "clients/base" module VirusTotal class API attr_reader :analysis attr_reader :domain attr_reader :file attr_reader :ip_address attr_reader :url def initialize(key: ENV["VIRUSTOTAL_API_KEY"]) raise ArgumentError, "No API key has been found or provided! (setup your VIRUSTOTAL_API_KEY environment varialbe)" unless key @analysis = Client::Analysis.new(key: key) @domain = Client::Domain.new(key: key) @file = Client::File.new(key: key) @ip_address = Client::IPAddress.new(key: key) @url = Client::URL.new(key: key) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
virustotalx-1.0.0 | lib/virustotal/api.rb |