[Bps-public-commit] r9704 - in Net-Hiveminder: lib/Net
sartak at bestpractical.com
sartak at bestpractical.com
Tue Nov 20 14:20:09 EST 2007
Author: sartak
Date: Tue Nov 20 14:20:08 2007
New Revision: 9704
Modified:
Net-Hiveminder/ (props changed)
Net-Hiveminder/lib/Net/Hiveminder.pm
Log:
r45380 at onn: sartak | 2007-11-20 14:19:30 -0500
Add a load_task method
Modified: Net-Hiveminder/lib/Net/Hiveminder.pm
==============================================================================
--- Net-Hiveminder/lib/Net/Hiveminder.pm (original)
+++ Net-Hiveminder/lib/Net/Hiveminder.pm Tue Nov 20 14:20:08 2007
@@ -142,6 +142,20 @@
$self->create('Task', summary => $summary);
}
+=head2 load_task Key => Value
+
+Load a task with the given Key => Value.
+
+=cut
+
+sub load_task {
+ my $self = shift;
+ my $key = shift;
+ my $value = shift;
+
+ return $self->read('Task', $key => $value);
+}
+
=head1 SEE ALSO
L<Jifty>, L<Net::Jifty>
More information about the Bps-public-commit
mailing list