Class: Abuseipdb::Endpoints::CheckBlock
- Defined in:
- lib/abuseipdb/endpoints/check_block.rb
Constant Summary collapse
- PATH =
'check-block'.freeze
Instance Attribute Summary
Attributes inherited from Base
#api, #api_version_path, #client, #config
Instance Method Summary collapse
Methods inherited from Base
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/check_block.rb', line 13 def call(params = {}) params = default_params(params) response = @api.get(url_path, params) Abuseipdb::Responses::CheckBlock.new(response) end |
#url_path ⇒ Object
8 9 10 |
# File 'lib/abuseipdb/endpoints/check_block.rb', line 8 def url_path PATH end |