Sha256: 84bcdcc48307e37c7aff630488d983b22c69a2397145a920ead4527d7f0f5ff3

Contents?: true

Size: 454 Bytes

Versions: 1

Compression:

Stored size: 454 Bytes

Contents

# frozen_string_literal: true

require_relative 'base'

module VirustotalAPI
  # A class for '/domains' API
  class Domain < Base
    # Find a domain.
    #
    # @param [String] domain The domain to search
    # @param [String] api_key for virustotal
    # @return [VirustotalAPI::Domain] Report Search Result
    def self.find(domain, api_key)
      report = perform("/domains/#{domain}", 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/domain.rb