| 1 | # $Id$ | ||||||||||||||||||||
| 2 | |||||||||||||||||||||
| 3 | package WebService::Simple::Parser::XML::Simple; | ||||||||||||||||||||
| 4 | 6 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 5 | 6 | ▶ | use warnings; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 6 | 6 | ▶ | use base qw(WebService::Simple::Parser); | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 7 | 6 | ▶ | use XML::Simple; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 8 | |||||||||||||||||||||
| 9 | 11 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: called CC=2 SCAR=7.1
Pod
documented
| |||||||||||||||||||||
| 10 | 11 | my $class = shift; | |||||||||||||||||||
| 11 | 11 | my %args = @_; | |||||||||||||||||||
| 12 | 11 | ▶ | my $xs = delete $args{xs} || XML::Simple->new; | ||||||||||||||||||
|
Condition33%1/3
delete $args{'xs'} || 'XML::Simple'->new
MC/DC0%0/2
delete $args{'xs'} || 'XML::Simple'->new
delete $args{'xs'}
'XML::Simple'->new
Truth table33%1/3
A || B
A= delete $args{'xs'}B= 'XML::Simple'->new
| |||||||||||||||||||||
| 13 | 11 | my $self = $class->SUPER::new(%args); | |||||||||||||||||||
| 14 | 11 | $self->{xs} = $xs; | |||||||||||||||||||
| 15 | 11 | return $self; | |||||||||||||||||||
| 16 | } | ||||||||||||||||||||
| 17 | |||||||||||||||||||||
| 18 | 1 | ▶ | sub parse_response { | ||||||||||||||||||
|
Subroutine
parse_response: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||||||||||||
| 19 | 1 | my $self = shift; | |||||||||||||||||||
| 20 | 1 | $self->{xs}->parse_string( $_[0]->decoded_content ); | |||||||||||||||||||
| 21 | } | ||||||||||||||||||||
| 22 | |||||||||||||||||||||
| 23 | 6 | 1; | |||||||||||||||||||
| 24 | |||||||||||||||||||||
| 25 | __END__ | ||||||||||||||||||||