File Coverage

blib/lib/Number/Phone/NANP/AG.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             package Number::Phone::NANP::AG;
2              
3             # numbering plan at http://www.itu.int/itudoc/itu-t/number/a/atg/75462.html
4              
5 3     3   1804 use strict;
  3         7  
  3         107  
6              
7 3     3   17 use base 'Number::Phone::NANP';
  3         7  
  3         573  
8              
9             our $VERSION = 1.1;
10              
11             my $cache = {};
12              
13             # NB this module doesn't register itself, the NANP module should be
14             # used and will load this one as necessary
15              
16             =head1 NAME
17              
18             Number::Phone::NANP::AG - AG-specific methods for Number::Phone
19              
20             =head1 DESCRIPTION
21              
22             This class implements AG-specific methods for Number::Phone. It is
23             a subclass of Number::Phone::NANP, which is in turn a subclass of
24             Number::Phone. Number::Phone::NANP sits in the middle because all
25             NANP countries can share some significant chunks of code. You should
26             never need to C this module directly, as C
27             will load it automatically when needed.
28              
29             =head1 SYNOPSIS
30              
31             use Number::Phone::NANP;
32            
33             my $phone_number = Number::Phone->new('+1 268 480 4000');
34             # returns a Number::Phone::NANP::AG object
35            
36             =head1 METHODS
37              
38             The following methods from Number::Phone are overridden:
39              
40             =over 4
41              
42             (no methods are overridden)
43              
44             =back
45              
46             =head1 BUGS/FEEDBACK
47              
48             Please report bugs at L, including, if possible, a test case.
49              
50             I welcome feedback from users.
51              
52             =head1 LICENCE
53              
54             You may use, modify and distribute this software under the same terms as
55             perl itself.
56              
57             =head1 AUTHOR
58              
59             David Cantrell Edavid@cantrell.org.ukE
60              
61             Copyright 2023
62              
63             =cut
64              
65             1;