lib/Geo/H3/Base.pm untested

filter: Statementstmt 0.0% 0 / 20 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 31 CC 3 SCAR 14.6
CC
3
Cov
0%
new
6.0
ffi
6.0
BEGIN
2.0
CRAP 4.3
1 package Geo::H3::Base;
2 use strict;
3 use warnings;
4 use Geo::H3::FFI 0.07;
5  
6 our $VERSION = '0.10';
7 our $PACKAGE = __PACKAGE__;
8  
9 =head1 NAME
10  
11 Geo::H3::Base - H3 Geospatial Hexagon Indexing System Base Object
12  
13 =head1 SYNOPSIS
14  
15 In Package
16  
17 use base qw{Geo::H3::Base};
18  
19 In Code
20  
21 my $gh3 = Geo::H3->new;
22
23 =head1 DESCRIPTION
24  
25 H3 Geospatial Hexagon Indexing System Base Object provides new and ffi methods to children objects.
26  
27 =head1 CONSTRUCTOR
28  
29 =head2 new
30  
31 my $obj = Package::New->new(key=>$value, ...);
32  
33 =cut
34  
35 sub new {
36 my $this = shift;
37 my $class = ref($this) ? ref($this) : $this;
38 my $self = {@_};
39 bless $self, $class;
40 return $self;
41 }
42  
43 =head1 OBJECT ACCESSORS
44  
45 =head2 ffi
46  
47 Returns a L<Geo::H3::FFI> object
48  
49 =cut
50  
51 sub ffi {
52 my $self = shift;
53 $self->{'ffi'} = Geo::H3::FFI->new unless $self->{'ffi'};
54 return $self->{'ffi'};
55 }
56  
57 =head1 SEE ALSO
58  
59 L<Geo::H3>
60  
61 =head1 AUTHOR
62  
63 Michael R. Davis
64  
65 =head1 COPYRIGHT AND LICENSE
66  
67 MIT License
68  
69 Copyright (c) 2021 Michael R. Davis
70  
71 =cut
72  
73 1;