Sha256: 56bcb52674adbea9c19888d91ec5f56d1f5c52faf57f58c8b23bc2b0fbf208d3
Contents?: true
Size: 569 Bytes
Versions: 2
Compression:
Stored size: 569 Bytes
Contents
# frozen_string_literal: true require_relative "clients/base" module VirusTotal class API 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 @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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
virustotalx-0.1.1 | lib/virustotal/api.rb |
virustotalx-0.1.0 | lib/virustotal/api.rb |