ModuleDocumentation/whatbot/Connection/Table/Karma.pm

NAME

whatbot::Connection::Table::Karma - Database functionality for karma.

SYNOPSIS

 use whatbot::Connection::Table::Karma;
 my $model = new whatbot::Connection::Table::Karma;
 $model->increment( 'whatbot', 'awesome_guy' );

DESCRIPTION

whatbot::Connection::Table::Karma provides database functionality for karma.

METHODS

increment( $topic, $user )
Increment the karma on a topic.
decrement( $topic, $user )
Decrement the karma on a topic.
get( $topic )
Retrieve the karma on a topic.
get_extended( $topic )
Retrieve extended info on a topic's karma. Returns a hashref containing 'Increments', which is the total volume of increments, 'Decrements', containing the total volume of decrements, and 'Last', which is an arrayref containing the last changing user and the amount of karma given.

INHERITANCE

LICENSE/COPYRIGHT

Be excellent to each other and party on, dudes.