NAME

Dancer2::Plugin::ProgressStatus::Object

DESCRIPTION

An object that represents a progress status.

SYNOPSIS

$progress++;
$progress->add_message('everything is going swimmingly');

AUTHOR

Steven Humphrey

METHODS

save

You shouldn't need to call this. Any use of increment, decrement, ++, --, add_message, status, count, etc will automatically call save.

increment

Adds a specified amount to the count (defaults to 1)

$prog->increment(10);

Can also add messages at the same time

$prog->increment(10, 'updating count by 10');
decrement

Decrement a specified amount from the count (defaults to 1)

$prog->decrement(10);

Can also add messages at the same time

$prog->decrement(10, 'reducing count by 10');
add_message

Adds one or more string messages to the status data.

$prog->add_message('a simple message');