Agent/Beeminder/Notify.pm untested

filter: Statementstmt 0.0% 0 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod n/a totaltotal 0.0% 0 / 17 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Exobrain::Agent::Beeminder::Notify;
2  
3 use Exobrain;
4 use Moose;
5 use Method::Signatures;
6  
7 # ABSTRACT: Send a notification every time a bmndr data point is updated
8 our $VERSION = '1.06'; # VERSION
9  
10 with 'Exobrain::Agent::Run';
11  
12 method run() {
13 $self->exobrain->watch_loop(
14 class => 'Measurement::Beeminder',
15 then => sub {
16 $self->exobrain->notify($_->summary);
17 },
18 );
19 }
20  
21 1;
22  
23 __END__