Class: HybridAnalysis::Clients::AbuseReports

Inherits:
Client
  • Object
show all
Defined in:
lib/hybridanalysis/clients/abuse_reports.rb

Constant Summary

Constants inherited from Client

Client::BASE_URL, Client::DEFAULT_UA, Client::HOST, Client::VERSION

Instance Attribute Summary

Attributes inherited from Client

#key

Instance Method Summary collapse

Methods inherited from Client

#initialize

Constructor Details

This class inherits a constructor from HybridAnalysis::Clients::Client

Instance Method Details

#new(sha256:, reason:) ⇒ Hash

Allows to request removal

Parameters:

  • sha256 (String)

    SHA256 of the sample you want to report

  • reason (String)

    Report reason

Returns:

  • (Hash)


14
15
16
17
18
19
20
# File 'lib/hybridanalysis/clients/abuse_reports.rb', line 14

def new(sha256:, reason: )
  params = {
    sha256: sha256,
    reason: reason
  }.compact
  _post("/abuse-reports/new", params) { |json| json }
end