The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Net::Lighthouse::Project::Milestone - Project Milestone

SYNOPSIS

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

ATTRIBUTES

created_at, updated_at

ro, Maybe DateTime

open_tickets_count, id, project_id, tickets_count

ro, Int

goals_html, user_name, permalink, url

ro, Maybe Str

title, goals, due_on

rw, Maybe Str

INTERFACE

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

load a milestone, return the loaded milestone object

create( goals => '', title => '', due_on => '' )

create a milestone, return true if succeeded

update( goals => '', title => '', due_on => '' )

update a milestone, return true if succeeded

delete

delete the milestone, return true if succeeded

list

return a list of milestones, each isa Net::Lighthouse::Project::Milestone

initial_state

return hashref, carrying the initial_state info

SEE ALSO

http://lighthouseapp.com/api/milestones

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.