NAME

Net::Lighthouse::Project::Changeset - Project Changeset

SYNOPSIS

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

ATTRIBUTES

project_id user_id

ro, Int

body_html

ro, Maybe Str

changed_at

rw, DateTime

changes

rw, ArrayRef

body, title, revision

rw, Maybe Str

INTERFACE

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

load a changeset, return the loaded changeset object

create( revision => '', body => '', title => '', changes => '', changed_at => '', )

create a changeset, return true if succeeded

delete

delete the changeset, return true if succeeded

list

return a list of changesets, each isa Net::Lighthouse::Project::Changeset.

initial_state

return hashref, carrying the initial_state info

SEE ALSO

http://lighthouseapp.com/api/changesets

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.