File Coverage

blib/lib/Geo/WebService/OpenCellID/Response/cell/getMeasures.pm
Criterion Covered Total %
statement 12 12 100.0
branch 2 2 100.0
condition n/a
subroutine 4 4 100.0
pod 1 1 100.0
total 19 19 100.0


line stmt bran cond sub pod time code
1             package Geo::WebService::OpenCellID::Response::cell::getMeasures;
2 4     4   25 use warnings;
  4         9  
  4         258  
3 4     4   23 use strict;
  4         7  
  4         143  
4 4     4   18 use base qw{Geo::WebService::OpenCellID::Response::cell::get};
  4         7  
  4         899  
5             our $VERSION = '0.06';
6              
7             =head1 NAME
8              
9             Geo::WebService::OpenCellID::Response::cell::getMeasures - 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 measure, measures
22              
23             Returns a list of measures (list of hash references)
24              
25             =cut
26              
27             *measure=\&measures;
28              
29             sub measures {
30 2     2 1 2340 my $self=shift;
31 2         7 my $list=$self->{"data"}->{"cell"}->[0]->{"measure"};
32 2 100       10 return wantarray ? @$list : $list;
33             }
34              
35             =head1 COPYRIGHT
36              
37             Copyright (c) 2025 Michael R. Davis
38              
39             This program is free software; you can redistribute
40             it and/or modify it under the same terms as Perl itself.
41              
42             The full text of the license can be found in the
43             LICENSE file included with this module.
44              
45             =cut
46              
47             1;