File Coverage

blib/lib/Geo/WebService/OpenCellID/Response.pm
Criterion Covered Total %
statement 15 15 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod 3 3 100.0
total 24 24 100.0


line stmt bran cond sub pod time code
1             package Geo::WebService::OpenCellID::Response;
2 4     4   35 use base qw{Geo::WebService::OpenCellID::Base};
  4         11  
  4         490  
3 4     4   23 use warnings;
  4         7  
  4         13553  
4 4     4   26 use strict;
  4         6  
  4         652  
5             our $VERSION = '0.06';
6              
7             =head1 NAME
8              
9             Geo::WebService::OpenCellID::Response - Perl API for the opencellid.org database
10              
11             =head1 SYNOPSIS
12              
13             use base qw{Geo::WebService::OpenCellID::Response};
14              
15             =head1 DESCRIPTION
16              
17             =head1 USAGE
18              
19             =head1 CONSTRUCTOR
20              
21             =head2 new
22              
23             =cut
24              
25             =head1 METHODS
26              
27             =head2 stat
28              
29             Returns the status from rsp->stat in the xml
30              
31             =cut
32              
33             sub stat {
34 3     3 1 71 my $self=shift;
35 3         29 return $self->{"data"}->{"stat"};
36             }
37              
38             =head2 content
39              
40             Returns the entire XML document.
41              
42             =cut
43              
44             sub content {
45 3     3 1 10 my $self=shift;
46 3         17 return $self->{"content"};
47             }
48              
49             =head2 url
50              
51             Returns the url of the web service as called
52              
53             =cut
54              
55             sub url {
56 3     3 1 11 my $self=shift;
57 3         19 return $self->{"url"};
58             }
59              
60             =head1 COPYRIGHT
61              
62             Copyright (c) 2025 Michael R. Davis
63              
64             This program is free software; you can redistribute
65             it and/or modify it under the same terms as Perl itself.
66              
67             The full text of the license can be found in the
68             LICENSE file included with this module.
69              
70             =cut
71              
72             1;