Class: Abuseipdb::Endpoints::Report

Inherits:
Base
  • Object
show all
Defined in:
lib/abuseipdb/endpoints/report.rb

Constant Summary collapse

PATH =
'report'.freeze

Instance Attribute Summary

Attributes inherited from Base

#api, #api_version_path, #client, #config

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Abuseipdb::Endpoints::Base

Instance Method Details

#call(params = {}) ⇒ Object



13
14
15
16
17
# File 'lib/abuseipdb/endpoints/report.rb', line 13

def call(params = {})
  params = default_params(params)
  response = @api.post(url_path, params)
  Abuseipdb::Responses::Report.new(response)
end

#url_pathObject



8
9
10
# File 'lib/abuseipdb/endpoints/report.rb', line 8

def url_path
  PATH
end