NAME

Net::Lighthouse::Project::Message - Project Message

SYNOPSIS

    use Net::Lighthouse::Project::Message;
    my $message = Net::Lighthouse::Project::Message->new(
        account    => 'sunnavy',
        auth       => { token => '' },
        project_id => 12345,
    );
    $message->load( 1 );
    print $message->title;
    $message->delete;

ATTRIBUTES

created_at, updated_at

ro, Maybe DateTime

id, user_id, parent_id, comments_count, project_id, all_attachments_count, attachments_count

ro, Maybe Int

body_html, user_name, permalink, url

ro, Maybe Str

comments

ro, ArrayRef of Net::Lighthouse::Project::Message

title body

rw, Maybe Str

INTERFACE

load( $id ), load_from_xml( $hashref | $xml_string )

load a message, return the loaded message object

create( title => '', body => '' );

create a message, return true if succeeded

create_comment( body => '' );

create a comment, return true if succeeded

update( title => '', body => '' );

update a message, return true if succeeded

delete

delete the message, return true if succeeded

list

return a list of messages, each isa Net::Lighthouse::Project::Message.

initial_state

return hashref, carrying the initial_state info

SEE ALSO

http://lighthouseapp.com/api/messages

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.