Intent/Beeminder.pm untested

filter: Statementstmt 0.0% 0 / 17 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 21 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Exobrain::Intent::Beeminder;
2 use Moose;
3 use Method::Signatures;
4  
5 # ABSTRACT: Exobrain intent packet for sending data to Beeminder.
6 our $VERSION = '1.06'; # VERSION
7  
8  
9 method summary() {
10 my $summary = join(' ', 'Beeminder: Set', $self->goal, 'to', $self->value);
11
12 if (my $comment = $self->comment) {
13 $summary .= " ($comment)";
14 }
15  
16 return $summary;
17 }
18  
19 BEGIN { with 'Exobrain::Intent' }
20  
21 payload goal => (isa => 'Str');
22 payload value => (isa => 'Num');
23 payload comment => (isa => 'Str', required => 0);
24  
25 1;
26  
27 __END__