Net::T...achment(3pm)

πŸ“¦
version 0.16 Β· 2 versions
  • 0.16 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.16 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– Net::T...achment β€” bestie, it's a Trac ticket attachment πŸ’–

okay so real quick, this page is Net::Trac::TicketAttachment (3pm), like from the User Contributed Perl Documentation, and it's giving single attachment energy. let's go 🫢


✨ NAME ✨

Net::Trac::TicketAttachment β€” the class that represents one single attachment for a Trac ticket. one. just the one. 🌸


πŸ¦‹ DESCRIPTION πŸ¦‹

So this class is literally just vibing as the representation of a single attachment on a Trac ticket.

but bestie, listen β€” you do not want to be instantiating this class yourself. no cap. don't do it. not the move. instead, let Net::Trac::Ticket do all the work for you, because that's its whole thing and it's iconic for it. periodt. πŸ’…


πŸ‘‘ ACCESSORS πŸ‘‘

these are the little getters, the main characters of reading data off your attachment. let's meet them πŸŽ€

🌈 connection

returns the Net::Trac::Connection that this class is using. that's the link-up. the pipeline. πŸ’œ

🌈 ticket

returns the ID of the ticket that this attachment belongs to. iykyk.

🌈 filename

the filename, obviously πŸ’€ it's literally just the filename bestie.

🌈 description

the description. yes queen, the description of the thing.

🌈 url

this one's relative to the remote Trac instance URL as set in the Net::Trac::Connection. so it's not the whole absolute URL, it's relative β€” important detail, don't forget it 🧚

🌈 content

returns the content of the attachment πŸ’–

🌈 content_type

returns the content_type of the attachment ✨

🌈 size

in bytes. that's the unit. bytes. πŸ“

🌈 author

the author. the one who did it. πŸ‘‘

🌈 date

returns a DateTime object. fancy fr fr πŸ’…


πŸ™ˆ PRIVATE METHODS πŸ™ˆ

these are the behind-the-scenes ones, the backstage crew, not for you to touch. no cap.

πŸ”₯ _parse_html_chunk STRING

parses a specific chunk of HTML β€” as extracted by Net::Trac::Ticket β€” into the various fields. that's the whole job. converting the chunk into fields. 🌟


πŸ“œ LICENSE πŸ“œ

Copyright 2008-2009 Best Practical Solutions.

this package is licensed under the same terms as Perl 5.8.8. πŸ’œ


aaaand that's the whole page bestie, you ate that 🫢 this was perl v5.36.0, dated 2022-12-12, and honestly? iconic of it. slay, go read your attachments responsibly πŸ’–βœ¨πŸŽ€πŸ¦‹πŸŒΈπŸ’…

πŸ“¦ where this page comes from