File Coverage

blib/lib/Geo/Coordinates/Converter/Point/ISO6709.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::ISO6709;
2 1     1   582 use strict;
  1         2  
  1         32  
3 1     1   5 use warnings;
  1         4  
  1         34  
4 1     1   736 use parent 'Geo::Coordinates::Converter::Point';
  1         245  
  1         6  
5             use Class::Accessor::Lite (
6 1         7 rw => [qw/ iso6709 /],
7 1     1   54 );
  1         1  
8              
9             sub new {
10 13     13 1 42087 my($class, $args) = @_;
11 13         29 my $iso6709 = delete $args->{iso6709};
12              
13 13         60 my $self = $class->SUPER::new($args);
14              
15 13         25 delete $self->{lat};
16 13         19 delete $self->{lng};
17 13         21 $self->{iso6709} = $iso6709;
18              
19 13         59 $self;
20             }
21              
22             1;
23             __END__