Sha256: 7350c5373bd2d5815c5989575b8ea730aab203f28f5a3f46367d25c7d448b45c

Contents?: true

Size: 442 Bytes

Versions: 1

Compression:

Stored size: 442 Bytes

Contents

# frozen_string_literal: true

require_relative 'base'

module VirustotalAPI
  # A class for '/users' API
  class User < Base
    # Find a User.
    #
    # @param [String] user_key with id or api_key
    # @param [String] api_key The key for virustotal
    # @return [VirustotalAPI::User] Report
    def self.find(user_key, api_key)
      report = perform("/users/#{user_key}", 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/user.rb