WebService::AbuseIPDB::Category - Category names and numbers for WebService::AbuseIPDB
use WebService::AbuseIPDB::Category; my $cat = WebService::AbuseIPDB::Category->new (18); print $cat->name; $cat = WebService::AbuseIPDB::Category->new ('Web App Attack'); print $cat->id;
This class stores a list of category IDs and names for use with WebService::AbuseIPDB.
my $catobj = WebService::AbuseIPDB::Category->new ($category)
The constructor takes one argument which is the category to be instantiated. This should be either the number of the category or the name of the category. If called with an existing category object it will return that same object as a no-op. If you would prefer a copy of the object then call it with the name or number instead. eg.
my $catcopy = WebService::AbuseIPDB::Category->new ($catobj->id)
my $id = $catobj->id; printf "%i\n", $id;
A method for returning the numerical ID of the category.
my $name = $catobj->name; printf "%s\n", $name;
A method for returning the name of the category.
Pete Houston, <cpan at openstrike.co.uk>
<cpan at openstrike.co.uk>
WebService::AbuseIPDB, https://www.abuseipdb.com/categories
Copyright © 2020 Pete Houston
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 dated June, 1991 or at your option any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
A copy of the GNU General Public License is available in the source tree; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
To install WebService::AbuseIPDB, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::AbuseIPDB
CPAN shell
perl -MCPAN -e shell install WebService::AbuseIPDB
For more information on module installation, please visit the detailed CPAN module installation guide.