File Coverage

blib/lib/WebService/BambooHR/EmployeeChange.pm
Criterion Covered Total %
statement 6 12 50.0
branch 0 6 0.0
condition n/a
subroutine 2 5 40.0
pod 0 3 0.0
total 8 26 30.7


line stmt bran cond sub pod time code
1             package WebService::BambooHR::EmployeeChange;
2             $WebService::BambooHR::EmployeeChange::VERSION = '0.04';
3 5     5   153 use 5.006;
  5         22  
  5         228  
4 5     5   34 use Moo;
  5         11  
  5         41  
5              
6             has id => (is => 'ro');
7             has lastChanged => (is => 'ro');
8             has action => (is => 'ro');
9              
10             sub deleted
11             {
12 0     0 0   my $self = shift;
13 0 0         return $self->action eq 'Deleted' ? 1 : 0;
14             }
15              
16             sub inserted
17             {
18 0     0 0   my $self = shift;
19 0 0         return $self->action eq 'Inserted' ? 1 : 0;
20             }
21              
22             sub updated
23             {
24 0     0 0   my $self = shift;
25 0 0         return $self->action eq 'Updated' ? 1 : 0;
26             }
27              
28             1;
29              
30             =head1 NAME
31              
32             WebService::BambooHR::EmployeeChange - data class returned by changed_employees method
33