Show
Ignore:
Timestamp:
06/01/08 19:51:03 (6 months ago)
Author:
yusukebe
Message:

Responseのparse_responseにオプションを渡せるようにした

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/WebService-Simple/trunk/lib/WebService/Simple/Response.pm

    r10337 r12988  
    88our $VERSION = "0.02"; 
    99 
    10 sub new_from_response 
    11 { 
     10sub new_from_response { 
     11 
    1212    # XXX hack. This probably should be changed... 
    1313    my $class = shift; 
    1414    my %args  = @_; 
    15     my $self = bless $args{response}, $class; 
     15    my $self  = bless $args{response}, $class; 
    1616    $self->{__parser} = $args{parser}; 
    1717    return $self; 
    1818} 
    1919 
    20 sub parse_response 
    21 { 
     20sub parse_response { 
    2221    my $self = shift; 
    23     return $self->{__parser}->parse_response($self); 
     22    my %opt  = @_; 
     23    return $self->{__parser}->parse_response( $self, %opt ); 
    2424} 
    2525