Class: VirustotalAPI::User

Inherits:
Base
  • Object
show all
Defined in:
lib/virustotal_api/user.rb

Overview

A class for ‘/users’ API

Instance Attribute Summary

Attributes inherited from Base

#id, #report, #report_url

Class Method Summary collapse

Methods inherited from Base

#api_uri, api_uri, #exists?, #initialize, perform, perform_absolute, url_identifier

Constructor Details

This class inherits a constructor from VirustotalAPI::Base

Class Method Details

.find(user_key, api_key) ⇒ VirustotalAPI::User

Find a User.

Parameters:

  • user_key (String)

    with id or api_key

  • api_key (String)

    The key for virustotal

Returns:



13
14
15
16
# File 'lib/virustotal_api/user.rb', line 13

def self.find(user_key, api_key)
  report = perform("/users/#{user_key}", api_key)
  new(report)
end