sub toString {
my $self = shift;
- my $pretty = shift;
- return OpenSRF::Utils::JSON->perl2prettyJSON($self) if ($pretty);
return OpenSRF::Utils::JSON->perl2JSON($self);
}
sub toString {
my $self = shift;
- my $pretty = shift;
- return OpenSRF::Utils::JSON->perl2prettyJSON($self) if ($pretty);
return OpenSRF::Utils::JSON->perl2JSON($self);
}
sub toString {
my $self = shift;
- my $pretty = shift;
- return OpenSRF::Utils::JSON->perl2prettyJSON($self) if ($pretty);
return OpenSRF::Utils::JSON->perl2JSON($self);
}
my %args = ( status => $default_status,
statusCode => $default_statusCode,
@_ );
-
+
return bless( \%args => $class );
}