WebService::SlimTimer::Task - Represents a single SlimTimer task.
version 0.002
The objects of this class repesent a SlimTimer task. These objects are not created directly but rather retrieved from WebService::SlimTimer using its list_tasks() or get_task() methods.
list_tasks()
get_task()
# Print the time spent on each task. my @tasks = $st->list_tasks(); for my $task (@tasks) { printf "%-30s %9.2f\n", $task->name, $task->hours }
Numeric task id. The id never changes after the task creation and can be cached locally.
The task name as an arbitrary string. Notice that it is possible, although confusing, to have more than one task with the same name, use id to uniquely identify the task.
id
The time when the task was created.
The time when the task was last updated.
Total hours spent on this task as recorded on the server. This is a floating point number.
Boolean flag indicating whether the task was completed. The tasks created with "create_task" in WebService::SlimTimer are not initially completed, use "complete_task" in WebService::SlimTimer to mark them as completed.
WebService::SlimTimer
Vadim Zeitlin <vz-cpan@zeitlins.org>
This software is copyright (c) 2011 by Vadim Zeitlin.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install WebService::SlimTimer, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::SlimTimer
CPAN shell
perl -MCPAN -e shell install WebService::SlimTimer
For more information on module installation, please visit the detailed CPAN module installation guide.