---
name: "Transmission::AttributeRole"
section: "3pm"
platform: "linux"
package: "libtransmission-client-perl"
version: "0.0806-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Transmission::AttributeRole"
---

# Transmission::AttributeRole(3pm)

For Torrent and Client

## NAME

Transmission::AttributeRole - For Torrent and Client

## DESCRIPTION

This role is used by Transmission::Client and Transmission::Torrent. It requires the consuming class to provide the method `"read_all()"`.

## ATTRIBUTES

### client

```
 $obj = $self->client;
```

Returns a Transmission::Client object.

### lazy\_write

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

Will prevent writeable attributes from sending a request to Transmission. "**write\_all()**" can then later be used to sync data.

### eager\_read

```
 $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).

## LICENSE

## AUTHOR

See Transmission::Client
