| 1 | |||
| 2 | package XCAP::Client::Document; | ||
| 3 | |||
| 4 | 3 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 3 | has connection => ( | |
| 7 | is => 'rw', | ||
| 8 | isa => 'Object', | ||
| 9 | required => 1, | ||
| 10 | ); | ||
| 11 | |||
| 12 | 3 | has content => ( | |
| 13 | is => 'rw', | ||
| 14 | isa => 'Str', | ||
| 15 | ); | ||
| 16 | |||
| 17 | 0 | ▶ | sub fetch { $_[0]->connection->get; } |
|
Subroutine
fetch: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 18 | |||
| 19 | 0 | ▶ | sub delete { $_[0]->connection->delete; } |
|
Subroutine
delete: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 20 | |||
| 21 | 0 | ▶ | sub create { |
|
Subroutine
create: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 22 | 0 | my $self = shift; | |
| 23 | 0 | $self->connection->content($self->content); | |
| 24 | 0 | $self->connection->put; | |
| 25 | } | ||
| 26 | |||
| 27 | 0 | ▶ | sub replace { |
|
Subroutine
replace: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 28 | 0 | my $self = shift; | |
| 29 | 0 | $self->connection->content($self->content); | |
| 30 | 0 | $self->connection->delete; | |
| 31 | 0 | $self->connection->put; | |
| 32 | } | ||
| 33 | |||
| 34 | |||
| 35 | 3 | 1; | |
| 36 | |||