---
name: "Net::Trac::TicketAttachment"
section: "3pm"
platform: "linux"
package: "libnet-trac-perl"
version: "0.16-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Net::Trac::TicketAttachment"
---

# Net::Trac::TicketAttachment(3pm)

Represents a single attachment for a Trac ticket

## 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.
