NAME

AnyEvent::WebService::Tracks::Project - Tracks project objects

VERSION

0.02

SYNOPSIS

$tracks->create_project($name, sub {
  my ( $project ) = @_;

  say $project->name;
});

DESCRIPTION

AnyEvent::WebService::Tracks::Project objects represent GTD projects in a Tracks installation.

READ-ONLY ATTRIBUTES

completed_at

When the project was completed.

created_at

When the project was created.

id

The Tracks ID of this project.

updated_at

When the project was last updated.

is_complete

Whether or not the project is complete.

is_active

Whether or not the project is complete.

is_hidden

Whether or not the project is hidden.

WRITABLE ATTRIBUTES

description

A description of this project.

name

This project's name (must be unique).

position

This project's position in the list of projects.

default_context($ctx_or_cb)

This functions a little bit differently than the other accessors; it takes either a Context object, a callback, or undef. If a Context object or undef is provided, that will be the new default context on the next update. If a callback is provided, a call is made to Tracks to retrieve the context object, which is then provided to the callback.

METHODS

Most useful methods in this class come from its superclass, AnyEvent::WebService::Tracks::Resource.

$project->complete

Marks the project as complete on this project's next update.

$project->activate

Marks the project as active on this project's next update.

$project->hide

Marks the project as hidden on this project's next update.

$project->todos($cb)

Retrieves the list of todos under this project and calls $cb with an array reference containing them.

AUTHOR

Rob Hoelz, rob at hoelz.ro

BUGS

Please report any bugs or feature requests to bug-AnyEvent-WebService-Tracks at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=AnyEvent-WebService-Tracks. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

COPYRIGHT & LICENSE

Copyright 2011 Rob Hoelz.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

AnyEvent::WebService::Tracks::Resource, AnyEvent::WebService::Tracks