Net::Trac::TicketAttachment(3)

NAME
Net::Trac::TicketAttachment - Represents a single attachment for a Trac ticket

DESCRIPTION
This class represents a single attachment for a Trac ticket. You do not want to deal with instantiating this class yourself. Instead let Net::Trac::Ticket do the work.

ACCESSORS

  connection
Returns the Net::Trac::Connection used by this class.

  ticket
Returns the ID of the ticket to which this attachment belongs.

  filename

  description

  url
Relative to the remote Trac instance URL as set in the Net::Trac::Connection.

  content
returns the content of the attachment

  content_type
returns the content_type of the attachment

  size
In bytes.

  author

  date
Returns a DateTime object.

PRIVATE METHODS

  _parse_html_chunk STRING
Parses a specific chunk of HTML (as extracted by Net::Trac::Ticket) into the various fields.

LICENSE
Copyright 2008-2009 Best Practical Solutions.

This package is licensed under the same terms as Perl 5.8.8.