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 \s-1ID\s0 of the ticket to which this attachment belongs.

filename

description

url

Relative to the remote Trac instance \s-1URL\s0 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 \s-1STRING\s0

Parses a specific chunk of \s-1HTML\s0 (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.