Barcelona/Meeting.pm

filter: Statementstmt 100% 20 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 100% 1 / 1 totaltotal 100% 27 / 27 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Barcelona.pm ↑ Summary
1 package Acme::PM::Barcelona::Meeting;
2  
3 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 =head1 NAME
7  
8 Acme::PM::Barcelona::Meeting - When is the next meeting?
9  
10 =head1 VERSION
11  
12 Version 0.01
13  
14 =cut
15  
16 2 our $VERSION = '0.01';
17  
18 2 ▶use base 'DateTime::Set';
Subroutine BEGIN: called CC=1 SCAR=0.0
19 2 ▶use DateTime;
Subroutine BEGIN: called CC=1 SCAR=0.0
20 2 ▶use DateTime::Event::ICal;
Subroutine BEGIN: called CC=1 SCAR=0.0
21  
22 =head1 SYNOPSIS
23  
24 use Acme::PM::Barcelona::Meeting;
25  
26 my $barcelona_pm = Acme::PM::Barcelona::Meeting->new();
27 print $barcelona_pm->next->datetime(), "\n";
28  
29 =head1 DESCRIPTION
30  
31 This module helps finding when the next Barcelona Perl Mongers meeting
32 will take place.
33  
34 =head1 USAGE
35  
36 =over 4
37  
38 =item new
39  
40 Creates a parent DateTime::Set object. All other methods are inherited.
41  
42 =cut
43  
44 sub new {
45 1 ▶ my $class = shift;
Subroutine new: called CC=1 SCAR=0.0
Pod documented
46  
47 # every last Thu of the month at 20:00
48 1 my $self = DateTime::Event::ICal->recur(
49 dtstart => DateTime->now,
50 freq => 'monthly',
51 byday => [ "-1th" ],
52 byhour => [ 20 ],
53 byminute => [ 0 ],
54 bysecond => [ 0 ],
55 );
56  
57 1 bless $self, $class;
58 }
59  
60 =back
61  
62 =head1 AUTHOR
63  
64 Alex Muntada, C<< <alexm at cpan.org> >>
65  
66 =head1 BUGS
67  
68 Please report any bugs or feature requests to C<bug-acme-pm-barcelona at rt.cpan.org>, or through
69 the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Acme-PM-Barcelona>. I will be notified, and then you'll
70 automatically be notified of progress on your bug as I make changes.
71  
72  
73  
74  
75 =head1 SUPPORT
76  
77 You can find documentation for this module with the perldoc command.
78  
79 perldoc Acme::PM::Barcelona::Meeting
80  
81  
82 You can also look for information at:
83  
84 =over 4
85  
86 =item * RT: CPAN's request tracker
87  
88 L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Acme-PM-Barcelona>
89  
90 =item * AnnoCPAN: Annotated CPAN documentation
91  
92 L<http://annocpan.org/dist/Acme-PM-Barcelona>
93  
94 =item * CPAN Ratings
95  
96 L<http://cpanratings.perl.org/d/Acme-PM-Barcelona>
97  
98 =item * Search CPAN
99  
100 L<http://search.cpan.org/dist/Acme-PM-Barcelona>
101  
102 =back
103  
104  
105 =head1 ACKNOWLEDGEMENTS
106  
107 Barcelona Perl Mongers
108  
109 =head1 COPYRIGHT & LICENSE
110  
111 Copyright 2009 Alex Muntada, all rights reserved.
112  
113 This program is free software; you can redistribute it and/or modify it
114 under the same terms as Perl itself.
115  
116  
117 =cut
118  
119 2 1; # End of Acme::PM::Barcelona::Meeting
« Barcelona.pm ↑ Summary