| 1 | # $Id$ | ||
| 2 | |||
| 3 | package WebService::Simple::Response; | ||
| 4 | 11 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 11 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 11 | ▶ | use base qw(HTTP::Response); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 11 | our $VERSION = "0.26"; | |
| 9 | |||
| 10 | 38 | ▶ | sub new_from_response { |
|
Subroutine
new_from_response: called CC=1 SCAR=0.0
Pod
documented
| |||
| 11 | |||
| 12 | # XXX hack. This probably should be changed... | ||
| 13 | 38 | my $class = shift; | |
| 14 | 38 | my %args = @_; | |
| 15 | 38 | my $self = bless $args{response}, $class; | |
| 16 | 38 | $self->{__parser} = $args{parser}; | |
| 17 | 38 | return $self; | |
| 18 | } | ||
| 19 | |||
| 20 | 1 | ▶ | sub parse_response { |
|
Subroutine
parse_response: called CC=1 SCAR=0.0
Pod
documented
| |||
| 21 | 1 | my $self = shift; | |
| 22 | 1 | return $self->{__parser}->parse_response( $self ); | |
| 23 | } | ||
| 24 | |||
| 25 | 11 | *parse_xml = \&parse_response; | |
| 26 | |||
| 27 | 11 | 1; | |
| 28 | |||
| 29 | __END__ | ||