NAME

Data::Timeline::Entry - A timeline entry

SYNOPSIS

my $entry = Data::Timeline::Entry->new(
    timestamp   => ...,
    type        => '...',
    description => '...',
);

DESCRIPTION

This class represents a timeline entry. An entry has a timestamp, a type and a description. The timestamp needs to be a DateTime object. The type is freely definable, but you need to be consistent. If you want to display multiple timelines side-by-side you probably need to define the entry type for each column. The description is a string that says what this entry is about.

Data::Timeline::Entry inherits from Class::Accessor::Complex, Class::Accessor::Constructor, and Class::Accessor::Constructor::Base.

METHODS

clear_description
$obj->clear_description;

Clears the value.

clear_timestamp
$obj->clear_timestamp;

Clears the value.

clear_type
$obj->clear_type;

Clears the value.

description
my $value = $obj->description;
$obj->description($value);

A basic getter/setter method. If called without an argument, it returns the value. If called with a single argument, it sets the value.

description_clear
$obj->description_clear;

Clears the value.

timestamp
my $value = $obj->timestamp;
$obj->timestamp($value);

A basic getter/setter method. If called without an argument, it returns the value. If called with a single argument, it sets the value.

timestamp_clear
$obj->timestamp_clear;

Clears the value.

type
my $value = $obj->type;
$obj->type($value);

A basic getter/setter method. If called without an argument, it returns the value. If called with a single argument, it sets the value.

type_clear
$obj->type_clear;

Clears the value.

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.