WWW::AdventCalendar::Article - one article in an advent calendar
Objects of this class represent a single article in a WWW::AdventCalendar. They have a very limited set of attributes. The primary task of this class is the production of an HTML version of the article's body.
This is the date (a DateTime object) on which the article is to be published.
This is the title of the article.
This is the topic of the article. This attribute is required, for now, but may become optional in the future.
This is the author of the article. This attribute is required. It should be given in mailbox format:
John Smith <email@example.com>
This is the body of the document, as a string. It is expected to be Pod.
This is the WWW::AdventCalendar object in which the article is found.
This is the body represented as HTML. It is generated as required by a private builder method.
This returns the email portion of the author. If none is present, it returns an email-like string unique to the author's name.
This returns the name portion of the author. If the author value doesn't appear to be a mailbox string, the whole value is returned.
Ricardo SIGNES <firstname.lastname@example.org>
This software is copyright (c) 2013 by Ricardo SIGNES.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.