JSON/MultiPolygon.pm

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 100% 1 / 1 totaltotal 100% 22 / 22 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
all_positions
1.0
CRAP 1.0
« JSON/MultiPoint.pm ↑ Summary JSON/Point.pm »
1 package Geo::JSON::MultiPolygon;
2  
3 3 our $VERSION = '0.007';
4  
5 # ABSTRACT: object representing a geojson MultiPolygon
6  
7 3 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 3 extends 'Geo::JSON::Base';
9 3 with 'Geo::JSON::Role::Geometry';
10  
11 3 ▶use Geo::JSON::Types -types;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 3 has '+coordinates' => ( isa => Polygons );
14  
15 1 ▶sub all_positions {
Subroutine all_positions: called CC=1 SCAR=0.0
Pod documented
16 1 my $self = shift;
17  
18 return [
19 2 map { @{$_} }
20 1 map { @{$_} } @{ $self->coordinates }
21 ];
22 }
23  
24 3 1;
25  
26 __END__
« JSON/MultiPoint.pm ↑ Summary JSON/Point.pm »