Point/Geohash.pm

filter: Statementstmt 100% 20 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 100% 1 / 1 totaltotal 100% 26 / 26 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Format/Geohash.pm ↑ Summary
1 package Geo::Coordinates::Converter::Point::Geohash;
2 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use parent 'Geo::Coordinates::Converter::Point';
Subroutine BEGIN: called CC=1 SCAR=0.0
5 3 ▶use Class::Accessor::Lite (
Subroutine BEGIN: called CC=1 SCAR=0.0
6 3 rw => [qw/ geohash /],
7 3 );
8  
9 2 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod documented
10 2 my($class, $args) = @_;
11 2 my $geohash = delete $args->{geohash};
12  
13 2 my $self = $class->SUPER::new($args);
14  
15 2 delete $self->{lat};
16 2 delete $self->{lng};
17 2 $self->{geohash} = $geohash;
18  
19 2 $self;
20 }
21  
22 3 1;
23 __END__
« Format/Geohash.pm ↑ Summary