File Coverage

blib/lib/Date/Holidays/Adapter/CA.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1             package Date::Holidays::Adapter::CA;
2              
3 1     1   232543 use strict;
  1         2  
  1         48  
4 1     1   6 use warnings;
  1         2  
  1         105  
5 1     1   15 use base 'Date::Holidays::Adapter::NO';
  1         2  
  1         678  
6              
7 1     1   30 use vars qw($VERSION);
  1         2  
  1         75  
8              
9             $VERSION = '1.35';
10              
11             1;
12              
13             __END__
14              
15             =pod
16              
17             =encoding UTF-8
18              
19             =head1 NAME
20              
21             Date::Holidays::Adapter::CA - an adapter class for Date::Holidays::CA
22              
23             =head1 VERSION
24              
25             This POD describes version 1.35 of Date::Holidays::Adapter::CA
26              
27             =head1 SUBROUTINES/METHODS
28              
29             =head2 new
30              
31             The constructor, takes a single named argument, B<countrycode>
32              
33             =head2 is_holiday
34              
35             The B<holidays> method, takes 3 named arguments, B<year>, B<month> and B<day>
36              
37             Returns an indication of whether the day is a holiday in the calendar of the
38             country referenced by B<countrycode> in the call to the constructor B<new>.
39              
40             =head2 holidays
41              
42             The B<holidays> method, takes a single named argument, B<year>
43              
44             Returns a reference to a hash holding the calendar of the country referenced by
45             B<countrycode> in the call to the constructor B<new>.
46              
47             The calendar will spand for a year and the keys consist of B<month> and B<day>
48             concatenated.
49              
50             =head1 DIAGNOSTICS
51              
52             Please refer to DIAGNOSTICS in L<Date::Holidays>
53              
54             =head1 DEPENDENCIES
55              
56             =over
57              
58             =item * L<Date::Holidays::CA>
59              
60             =item * L<Date::Holidays::Adapter>
61              
62             =back
63              
64             =head1 INCOMPATIBILITIES
65              
66             Please refer to INCOMPATIBILITIES in L<Date::Holidays>
67              
68             =head1 BUGS AND LIMITATIONS
69              
70             Please refer to BUGS AND LIMITATIONS in L<Date::Holidays>
71              
72             =head1 BUG REPORTING
73              
74             Please refer to BUG REPORTING in L<Date::Holidays>
75              
76             =head1 AUTHOR
77              
78             Jonas Brømsø, (jonasbn) - C<< <jonasbn@cpan.org> >>
79              
80             =head1 LICENSE AND COPYRIGHT
81              
82             L<Date::Holidays> and related modules are (C) by Jonas Brømsø, (jonasbn)
83             2004-2024
84              
85             Date-Holidays and related modules are released under the Artistic License 2.0
86              
87             =cut