Transmission::AttributeRole - For Torrent and Client
This role is used by Transmission::Client and Transmission::Torrent. It requires the consuming class to provide the method read_all().
$obj = $self->client;
Returns a Transmission::Client object.
$bool = $self->lazy_write;
Will prevent writeable attributes from sending a request to Transmission. "write_all()" can then later be used to sync data.
$bool = $self->eager_read;
Setting this attribute in constructor forces "read_all()" to be called. This will again populate all (or most) attributes right after the object is constructed (if Transmission answers the request).
To install Transmission::Client, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.