Class: VirustotalAPI::Group

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

Overview

A class for ‘/groups’ 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(group_id, api_key) ⇒ VirustotalAPI::User

Find a Group.

Parameters:

  • group_id (String)

    to find

  • api_key (String)

    The key for virustotal

Returns:



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

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