[Bps-public-commit] r9703 - in Net-Hiveminder: lib/Net
sartak at bestpractical.com
sartak at bestpractical.com
Mon Nov 19 23:13:48 EST 2007
Author: sartak
Date: Mon Nov 19 23:13:47 2007
New Revision: 9703
Modified:
Net-Hiveminder/ (props changed)
Net-Hiveminder/lib/Net/Hiveminder.pm
Log:
r45378 at onn: sartak | 2007-11-19 23:13:43 -0500
Better synopsis and create_task
Modified: Net-Hiveminder/lib/Net/Hiveminder.pm
==============================================================================
--- Net-Hiveminder/lib/Net/Hiveminder.pm (original)
+++ Net-Hiveminder/lib/Net/Hiveminder.pm Mon Nov 19 23:13:47 2007
@@ -21,8 +21,9 @@
=head1 SYNOPSIS
use Net::Hiveminder;
- my $hm = Net::Hiveminder->new(email => 'god at mushroom.mu', password => 'melange');
+ my $hm = Net::Hiveminder->new(email => 'busybee at hive.org', password => 'honey');
print $hm->todo;
+ $hm->create_task("Boy these pretzels are making me thirsty [due tomorrow]");
=head1 DESCRIPTION
@@ -128,6 +129,19 @@
$self->display_tasks( $self->todo_tasks(@_) );
}
+=head2 create_task SUMMARY
+
+Creates a new task with the given summary.
+
+=cut
+
+sub create_task {
+ my $self = shift;
+ my $summary = shift;
+
+ $self->create('Task', summary => $summary);
+}
+
=head1 SEE ALSO
L<Jifty>, L<Net::Jifty>
More information about the Bps-public-commit
mailing list