Transm...uteRole(3pm)

πŸ“¦
version 0.0806 Β· 3 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

✨ NAME ✨

Transmission::AttributeRole β€” it's giving "for Torrent and Client" πŸ’–


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so bestie, this role is worn by both Transmission::Client and Transmission::Torrent β€” they're literally sharing the same fit πŸ’…

It's a role, which means it's not doing all the work alone, no ma'am. The class that consumes it has to bring its own method called read_all() to the group chat. No read_all(), no vibes. Periodt.


πŸŽ€ ATTRIBUTES πŸŽ€

🌸 client

$obj = $self->client;

Hands you back a Transmission::Client object. That's it, that's the whole thing. Iconic, lowkey 🫢

⭐ lazy_write

$bool = $self->lazy_write;
$self->lazy_write($bool);

The main character of "not right now." Setting this stops your writeable attributes from sending a request over to Transmission β€” they just sit there, chilling πŸ’€

Then, whenever you're actually ready, you can call write_all() later to sync all that data up. Delayed gratification, fr fr.

πŸ¦‹ eager_read

$bool = $self->eager_read;

Setting this attribute in the constructor forces read_all() to get called πŸ‘‘

Why would you do that? Because it'll populate all (or most, let's be honest, most) of the attributes right after the object is constructed β€” that is, if Transmission actually answers the request. If it doesn't… well. 😭


πŸ’œ LICENSE πŸ’œ

(empty. crickets. nothing but vibes and silence πŸ“)


πŸ’€ AUTHOR πŸ’€

See Transmission::Client. That's the whole credit. Go look over there, bestie 🫢


And that's the page! This lil masterpiece ships with perl v5.36.0, dated 2022-10-16, and its manual name is Transm...uteRole(3pm) β€” mwah, go forth and transmit πŸ’…βœ¨πŸ‘‘

πŸ“¦ where this page comes from