File Coverage

blib/lib/Date/Holidays/Adapter/CA_ES.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_ES;
2              
3 1     1   253407 use strict;
  1         3  
  1         32  
4 1     1   3 use warnings;
  1         2  
  1         54  
5              
6 1     1   8 use base qw(Date::Holidays::Adapter::ES);
  1         1  
  1         454  
7              
8 1     1   4 use vars qw($VERSION);
  1         1  
  1         62  
9              
10             $VERSION = '1.35';
11              
12             1;
13              
14             __END__
15              
16             =pod
17              
18             =encoding UTF-8
19              
20             =head1 NAME
21              
22             Date::Holidays::Adapter::CA_ES - adapter dummy class for Date::Holidays::CA_ES
23              
24             =head1 VERSION
25              
26             This POD describes version 1.35 of Date::Holidays::Adapter::CA_ES
27              
28             =head1 SYNOPSIS
29              
30             # Recommended use via Date::Holidays
31              
32             use Date::Holidays;
33              
34             my $dh = Date::Holidays->new( countrycode => 'es' );
35              
36             if ($dh->is_holiday(year => 2017, month => 6, day => 24, region => 'ca')) {
37             print "Yes it is a Catalan holiday\n";
38             }
39              
40             my $holidays = $dh->holidays( year => 2006, region => 'ca' );
41              
42              
43             # CA_ES identifier directly via Date::Holidays
44              
45             use Date::Holidays;
46              
47             my $dh = Date::Holidays->new( countrycode => 'CA_ES', nocheck => 1 );
48              
49             if ($dh->is_holiday(year => 2017, month => 6, day => 24)) {
50             print "Yes it is a Catalan holiday\n";
51             }
52              
53             my $holidays = $dh->holidays( year => 2006);
54              
55             =head1 DESCRIPTION
56              
57             The is the an adapter class. It adapts:
58              
59             =over
60              
61             =item * L<Date::Holidays::CA_ES>
62              
63             =back
64              
65             This adapter is a placeholder supporting the implementation in the distribution: L<Date::Holidays::CA_ES>.
66              
67             The actual implementation is located in L<Date::Holidays::Adapter::ES>, which adapts and combines the two.
68              
69             =head1 SUBROUTINES/METHODS
70              
71             Please see L<Date::Holidays::Adapter::ES>
72              
73             =head1 DIAGNOSTICS
74              
75             Please refer to DIAGNOSTICS in L<Date::Holidays>
76              
77             =head1 DEPENDENCIES
78              
79             =over
80              
81             =item * L<Date::Holidays::ES>
82              
83             =back
84              
85             =head1 INCOMPATIBILITIES
86              
87             Please refer to INCOMPATIBILITIES in L<Date::Holidays>
88              
89             =head1 BUGS AND LIMITATIONS
90              
91             Please refer to BUGS AND LIMITATIONS in L<Date::Holidays>
92              
93             =head1 BUG REPORTING
94              
95             Please refer to BUG REPORTING in L<Date::Holidays>
96              
97             =head1 AUTHOR
98              
99             Jonas Brømsø, (jonasbn) - C<< <jonasbn@cpan.org> >>
100              
101             =head1 LICENSE AND COPYRIGHT
102              
103             L<Date::Holidays> and related modules are (C) by Jonas Brømsø, (jonasbn)
104             2004-2024
105              
106             Date-Holidays and related modules are released under the Artistic License 2.0
107              
108             =cut