OpenCellID/Response/cell/getMeasures.pm

filter: Statementstmt 100% 15 / 15 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 1 / 1 totaltotal 100% 22 / 22 CC 2 SCAR 3.4
CC
2
Cov
100%
measures
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.4
« OpenCellID/Base.pm ↑ Summary OpenCellID/cell.pm »
1 package Geo::WebService::OpenCellID::Response::cell::getMeasures;
2 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 4 ▶use base qw{Geo::WebService::OpenCellID::Response::cell::get};
Subroutine BEGIN: called CC=1 SCAR=0.0
5 4 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 4 *measure=\&measures;
28  
29 2 ▶sub measures {
Subroutine measures: called CC=2 SCAR=6.9
Pod documented
30 2 my $self=shift;
31 2 my $list=$self->{"data"}->{"cell"}->[0]->{"measure"};
32 2 ▶ return wantarray ? @$list : $list;
Branch: 1 branch
BranchTrueFalseTotal
wantarray ? : 1 1 2
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 4 1;
« OpenCellID/Base.pm ↑ Summary OpenCellID/cell.pm »