blib/lib/Number/Phone/NANP/AI.pm

filter: Statementstmt 100% 10 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 100% 1 / 1 totaltotal 100% 14 / 14 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
regulator
1.0
CRAP 1.0
« blib/lib/Number/Phone/NANP/AG.pm ↑ Summary blib/lib/Number/Phone/NANP/AS.pm »
1 package Number::Phone::NANP::AI;
2  
3 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 3 ▶use base 'Number::Phone::NANP';
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 3 our $VERSION = 1.1;
8  
9 3 my $cache = {};
10  
11 # NB this module doesn't register itself, the NANP module should be
12 # used and will load this one as necessary
13  
14 =head1 NAME
15  
16 Number::Phone::NANP::AI - AI-specific methods for Number::Phone
17  
18 =head1 DESCRIPTION
19  
20 This class implements AI-specific methods for Number::Phone. It is
21 a subclass of Number::Phone::NANP, which is in turn a subclass of
22 Number::Phone. Number::Phone::NANP sits in the middle because all
23 NANP countries can share some significant chunks of code. You should
24 never need to C<use> this module directly, as C<Number::Phone::NANP>
25 will load it automatically when needed.
26  
27 =head1 SYNOPSIS
28  
29 use Number::Phone::NANP;
30
31 my $phone_number = Number::Phone->new('+1 264 497 3924');
32 # returns a Number::Phone::NANP::AI object
33
34 =head1 METHODS
35  
36 The following methods from Number::Phone are overridden:
37  
38 =over 4
39  
40 =item regulator
41  
42 Returns information about the national telecomms regulator.
43  
44 =cut
45  
46 1 ▶sub regulator { 'PUC, http://www.gov.ai/telecommunications/'; }
Subroutine regulator: called CC=1 SCAR=0.0
Pod documented
47  
48 =back
49  
50 =head1 BUGS/FEEDBACK
51  
52 Please report bugs at L<https://github.com/DrHyde/perl-modules-Number-Phone/issues>, including, if possible, a test case.
53  
54 I welcome feedback from users.
55  
56 =head1 LICENCE
57  
58 You may use, modify and distribute this software under the same terms as
59 perl itself.
60  
61 =head1 AUTHOR
62  
63 David Cantrell E<lt>david@cantrell.org.ukE<gt>
64  
65 Copyright 2026
66  
67 =cut
68  
69 3 1;
« blib/lib/Number/Phone/NANP/AG.pm ↑ Summary blib/lib/Number/Phone/NANP/AS.pm »