lib/virustotal/api.rb in virustotalx-0.1.1 vs lib/virustotal/api.rb in virustotalx-1.0.0

- old
+ new

@@ -2,17 +2,19 @@ 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