Sha256: 414c44dbfa59e343a2d022e66664643e60f77946f0d94e2dc7ba0889c3d99c31

Contents?: true

Size: 427 Bytes

Versions: 1

Compression:

Stored size: 427 Bytes

Contents

# frozen_string_literal: true

require_relative 'base'

module VirustotalAPI
  # A class for '/analyses' API
  class Analysis < Base
    # @param [String] id The Virustotal ID to get the report for.
    # @param [String] api_key The key for virustotal
    # @return [VirustotalAPI::IP] Report
    def self.find(id, api_key)
      report = perform("/analyses/#{id}", api_key)
      new(report)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
virustotal_api_compat-0.1.7 lib/virustotal_api/analysis.rb