SlimTimer/Task.pm

filter: Statementstmt 100% 34 / 34 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 11 / 11 Podpod n/a totaltotal 100% 45 / 45 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« SlimTimer/Types.pm ↑ Summary
1 # PODNAME: WebService::SlimTimer::Task
2 #
3 # ABSTRACT: Represents a single SlimTimer task.
4  
5 3 ▶use MooseX::Declare;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 class WebService::SlimTimer::Task
8 3 ▶{
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine __ANON__: called CC=1 SCAR=0.0
9  
10  
11 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 3 ▶use MooseX::Types::Moose qw(Int Num Str);
Subroutine BEGIN: called CC=1 SCAR=0.0
15 3 ▶use WebService::SlimTimer::Types qw(TimeStamp OptionalTimeStamp);
Subroutine BEGIN: called CC=1 SCAR=0.0
16  
17 3 has id => ( is => 'ro', isa => Int, required => 1 );
18 3 has name => ( is => 'ro', isa => Str, required => 1 );
19 3 has created_at => ( is => 'ro', isa => TimeStamp, required => 1, coerce => 1 );
20 3 has updated_at => ( is => 'ro', isa => TimeStamp, required => 1, coerce => 1 );
21 3 has hours => ( is => 'ro', isa => Num, required => 1 );
22 3 has completed_on => ( is => 'ro', isa => OptionalTimeStamp, coerce => 1 );
23  
24 # TODO: Add more fields:
25 # - role: comma-separated list of (owner, coworker, reporter)
26 # - tags: comma-separated list of arbitrary words
27 # - owners: list of persons (name + user_id + email)
28 # - reports: list of persons
29 # - coworkers: list of persons
30  
31 3 ▶}
Subroutine BEGIN: called CC=1 SCAR=0.0
32  
33 __END__
« SlimTimer/Types.pm ↑ Summary