File Coverage

blib/lib/Geo/WebService/OpenCellID/Response/cell.pm
Criterion Covered Total %
statement 9 17 52.9
branch n/a
condition 0 3 0.0
subroutine 3 7 42.8
pod 4 4 100.0
total 16 31 51.6


line stmt bran cond sub pod time code
1             package Geo::WebService::OpenCellID::Response::cell;
2 4     4   27 use warnings;
  4         8  
  4         218  
3 4     4   18 use strict;
  4         6  
  4         157  
4 4     4   23 use base qw{Geo::WebService::OpenCellID::Response};
  4         8  
  4         1840  
5             our $VERSION = '0.06';
6              
7             =head1 NAME
8              
9             Geo::WebService::OpenCellID::Response::cell - Perl API for the opencellid.org database
10              
11             =head1 SYNOPSIS
12              
13             =head1 DESCRIPTION
14              
15             Perl Interface to the database at http://www.opencellid.org/
16              
17             =head1 USAGE
18              
19             =head1 METHODS
20              
21             =head2 mnc
22              
23             =cut
24              
25             sub mnc {
26 0     0 1   my $self=shift;
27 0           return $self->{"data"}->{"cell"}->[0]->{"mnc"};
28             }
29              
30             =head2 mcc
31              
32             =cut
33              
34             sub mcc {
35 0     0 1   my $self=shift;
36 0           return $self->{"data"}->{"cell"}->[0]->{"mcc"};
37             }
38              
39             =head2 lac
40              
41             =cut
42              
43             sub lac {
44 0     0 1   my $self=shift;
45 0           return $self->{"data"}->{"cell"}->[0]->{"lac"};
46             }
47              
48             =head2 cellid, cellId
49              
50             =cut
51              
52             *cellId=\&cellid;
53              
54             sub cellid {
55 0     0 1   my $self=shift;
56 0   0       return $self->{"data"}->{"cell"}->[0]->{"cellid"} || $self->{"data"}->{"cell"}->[0]->{"cellId"};
57             }
58              
59             =head1 COPYRIGHT
60              
61             Copyright (c) 2025 Michael R. Davis
62              
63             This program is free software; you can redistribute
64             it and/or modify it under the same terms as Perl itself.
65              
66             The full text of the license can be found in the
67             LICENSE file included with this module.
68              
69             =cut
70              
71             1;