NAME
App::JobLog::Log::Synopsis - consolidates App::JobClock::Log::Event objects for display
VERSION
version 1.042
DESCRIPTION
App::JobLog::Log::Synopsis represents a collection of App::JobLog::Log::Event objects merged together according to some merging rule.
METHODS
collect
Only exported function of App::JobLog::Log::Synopsis, collect
exects a reference to a App::JobLog::Log::Day and a merge level. It then generates all the synopses appropriate to the given level in the given day, storing these in the day under the key synopses
.
date
DateTime object representing first moment in first event in synopsis.
description
Returns unformatted string containing all unique descriptions in events described, listing them in the order in which they appeared and separating distinct events with semicolons when they end in a word character.
tags
Returns unformatted string containing all unique tags in events described, listing them in alphabetical order.
tag_string
Returns stringification of tags in the events described, sorting them alphabetically and separating distinct tags with commas.
events
Accessor for events in Synopsis. Returns these as list rather than reference.
last_event
Accessor for last event in synopsis.
single_interval
Whether all events contained in this synopsis are adjacent.
single_day
Whether all events contained in this synopsis occur in the same day.
duration
Duration in seconds of all events contained in this Synopsis.
time_fmt
Formats time interval of events.
AUTHOR
David F. Houghton <dfhoughton@gmail.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by David F. Houghton.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.