The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

WebService::SlimTimer::Task - Represents a single SlimTimer task.

VERSION

version 0.002

SYNOPSIS

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.

    # 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
    }

ATTRIBUTES

id

Numeric task id. The id never changes after the task creation and can be cached locally.

name

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.

created_at

The time when the task was created.

updated_at

The time when the task was last updated.

hours

Total hours spent on this task as recorded on the server. This is a floating point number.

completed_on

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.

SEE ALSO

WebService::SlimTimer

AUTHOR

Vadim Zeitlin <vz-cpan@zeitlins.org>

COPYRIGHT AND LICENSE

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.