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


Net-Trac documentation  | view source Contained in the Net-Trac distribution.

Index


NAME

Top

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

DESCRIPTION

Top

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

Top

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

Top

_parse_html_chunk STRING

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

LICENSE

Top

Copyright 2008-2009 Best Practical Solutions.

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


Net-Trac documentation  | view source Contained in the Net-Trac distribution.