NAME
Data::Timeline::Builder - Base class for timeline builders
SYNOPSIS
Data::Timeline::Builder->new;
package Data::Timeline::SVK;
use base 'Data::Timeline::Builder';
sub create {
my $self = shift;
my $timeline = $self->make_timeline;
for (...) {
...
$timeline->entries_push($self->make_entry(
timestamp => ...,
description => ...,
type => 'svk',
));
}
$timeline;
}
DESCRIPTION
This is a base class for timeline builders. Subclasses need to implement the create()
method.
Data::Timeline::Builder inherits from Class::Accessor::Complex, Class::Accessor::Constructor, and Class::Accessor::Constructor::Base.
METHODS
- make_timeline
-
my $timeline = $self->make_timeline;
Convenience method; returns a new Data::Timeline object. Any arguments are passed to
Data::Timeline-
new()>. - make_entry
-
$timeline->entries_push($self->make_entry(...));
Convenience method; returns a new Data::Timeline::Entry object. Any arguments are passed to
Data::Timeline::Entry-
new()>.
TAGS
If you talk about this module in blogs, on del.icio.us or anywhere else, please use the datatimeline
tag.
BUGS AND LIMITATIONS
No bugs have been reported.
Please report any bugs or feature requests to <bug-data-timeline@rt.cpan.org
>, or through the web interface at http://rt.cpan.org.
INSTALLATION
See perlmodinstall for information and options on installing Perl modules.
AVAILABILITY
The latest version of this module is available from the Comprehensive Perl Archive Network (CPAN). Visit <http://www.perl.com/CPAN/> to find a CPAN site near you. Or see <http://www.perl.com/CPAN/authors/id/M/MA/MARCEL/>.
AUTHOR
Marcel Grünauer, <marcel@cpan.org>
COPYRIGHT AND LICENSE
Copyright 2007 by Marcel Grünauer
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.