File Coverage

blib/lib/WebService/Backlog/UpdateIssue.pm
Criterion Covered Total %
statement 9 14 64.2
branch 0 2 0.0
condition n/a
subroutine 3 4 75.0
pod 0 1 0.0
total 12 21 57.1


line stmt bran cond sub pod time code
1             package WebService::Backlog::UpdateIssue;
2              
3             # $Id$
4              
5 1     1   6 use strict;
  1         3  
  1         40  
6 1     1   5 use warnings;
  1         1  
  1         42  
7              
8 1     1   4 use base qw(Class::Accessor::Fast);
  1         2  
  1         163  
9              
10             my @PARAMS = qw/
11             key summary description
12             start_date due_date
13             estimated_hours actual_hours
14             issueTypeId priorityId componentId resolutionId versionId milestoneId
15             assignerId comment
16             /;
17              
18             __PACKAGE__->mk_accessors(@PARAMS);
19              
20             sub hash {
21 0     0 0   my $self = shift;
22 0           my $hash = {};
23 0           for my $p (@PARAMS) {
24 0 0         $hash->{$p} = $self->$p if ( defined $self->$p );
25             }
26 0           return $hash;
27             }
28              
29             1;
30             __END__