Sha256: 2385cd89e5c3fa117866ff550a7c4f2a40f3fc29ad6ed857a362c004eb62afd7

Contents?: true

Size: 516 Bytes

Versions: 1

Compression:

Stored size: 516 Bytes

Contents

# frozen_string_literal: true

module HybridAnalysis
  module Clients
    class AbuseReports < Client
      #
      # Allows to request removal
      #
      # @param [String] sha256 SHA256 of the sample you want to report
      # @param [String] reason Report reason
      #
      # @return [Hash]
      #
      def new(sha256:, reason: )
        params = {
          sha256: sha256,
          reason: reason
        }.compact
        _post("/abuse-reports/new", params) { |json| json }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hybridanalysisx-0.1.0 lib/hybridanalysis/clients/abuse_reports.rb