Response/TicketListDeleted.pm

filter: Statementstmt 100% 9 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 12 / 12 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Response/TicketList.pm ↑ Summary
1 package QualysGuard::Response::TicketListDeleted;
2  
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶use base qw( QualysGuard::Response );
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 our $VERSION = '0.01';
9  
10  
11 # =============================================================
12 # - new
13 # =============================================================
14 sub new {
15 my ( $class, $xml ) = @_;
16  
17 my $self = __PACKAGE__->SUPER::new( $xml );
18  
19 bless $self, $class;
20  
21 # -- check for QualysGuard function error
22  
23 if ( $self->exists('/TICKET_LIST_DELETED_OUTPUT/ERROR') ) {
24 $self->{error_code} = $self->findvalue('/TICKET_LIST_DELETED_OUTPUT/ERROR/@number');
25 $self->{error_text} = $self->getNodeText('/TICKET_LIST_DELETED_OUTPUT/ERROR');
26 $self->{error_text} =~ s/^\s+(.*)\s+$/$1/m;
27 }
28  
29 return $self;
30 }
31  
32  
33 1;
34  
35 __END__
« Response/TicketList.pm ↑ Summary