File Coverage

blib/lib/Geo/Coordinates/Converter/Point/Geohash.pm
Criterion Covered Total %
statement 19 19 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 1 1 100.0
total 25 25 100.0


line stmt bran cond sub pod time code
1             package Geo::Coordinates::Converter::Point::Geohash;
2 3     3   349527 use strict;
  3         8  
  3         131  
3 3     3   18 use warnings;
  3         6  
  3         103  
4 3     3   2556 use parent 'Geo::Coordinates::Converter::Point';
  3         990  
  3         15  
5             use Class::Accessor::Lite (
6 3         32 rw => [qw/ geohash /],
7 3     3   29938 );
  3         8  
8              
9             sub new {
10 2     2 1 15981 my($class, $args) = @_;
11 2         8 my $geohash = delete $args->{geohash};
12              
13 2         23 my $self = $class->SUPER::new($args);
14              
15 2         55 delete $self->{lat};
16 2         4 delete $self->{lng};
17 2         7 $self->{geohash} = $geohash;
18              
19 2         24 $self;
20             }
21              
22             1;
23             __END__