NAME

Net::Lighthouse::Project - Project

SYNOPSIS

use Net::Lighthouse::Project;
my $project = Net::Lighthouse::Project->new(
    account => 'foo',
    auth    => { token => 'bla' },
);

$project->load( 35918 ); # load by id
$project->load( 'foo' ); # load by name

my $description = $project->description;
my $created_at = $project->created_at; # DateTime object, UTC based

my @projects   = $project->list;
my $ticket     = $project->ticket;
my @tickets    = $project->tickets;
my $bin        = $project->ticket_bin;
my @bins       = $project->ticket_bins;
my $changeset  = $project->changeset;
my @changesets = $project->changesets;
my $milestone  = $project->milestone;
my @milestones = $project->milestones;
my $message    = $project->message;
my @messages   = $project->messages;

ATTRIBUTES

created_at, updated_at

ro, DateTime object, UTC based

open_states_list, closed_states_list, open_states, closed_states

ro, Array

default_assigned_user_id, default_milestone_id, id, open_tickets_count

ro, Maybe Int

hidden, send_changesets_to_events

ro, Bool

description, description_html, permalink, access, license

ro, Maybe Str

archived, public

rw, Bool

name

rw, Bool

INTERFACE

projects, changesets, tickets, ticket_bins, messages, milestones

return a list of corresponding object

changeset, ticket, ticket_bin, message, milestone

return a corresponding object, with account and auth prefilled if exist.

create( name => '', archived => '', public => '' )

create a project, return true if succeeded

update( name => '', archived => '', public => '' )

update the project, return true if succeeded

delete

delete the project, return true if succeeded

list

return a list of projects, each isa Net::Lighthouse::Project

load( $id | $name ), load_from_xml( $hahsref | $xml_string )

load a project, return loaded project object

initial_state

return hashref, carrying the initial_state info

SEE ALSO

http://lighthouseapp.com/api/projects

AUTHOR

sunnavy <sunnavy@bestpractical.com>

LICENCE AND COPYRIGHT

Copyright 2009-2010 Best Practical Solutions.

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