JSON/MultiLineString.pm

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