| 1 | package Net::Async::Trello::Card; | ||
| 2 | |||
| 3 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 2 | our $VERSION = '0.005'; # VERSION | |
| 7 | |||
| 8 | 2 | ▶ | use parent qw(Net::Async::Trello::Generated::Card); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 2 | ▶ | use Log::Any qw($log); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | =head1 NAME | ||
| 13 | |||
| 14 | Net::Async::Trello::Card | ||
| 15 | |||
| 16 | =head1 DESCRIPTION | ||
| 17 | |||
| 18 | Autogenerated module. | ||
| 19 | |||
| 20 | =cut | ||
| 21 | |||
| 22 | sub history { | ||
| 23 | 0 | ▶ | my ($self, %args) = @_; |
|
Subroutine
history: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 24 | 0 | my $trello = $self->trello; | |
| 25 | $trello->http_get( | ||
| 26 | uri => URI->new( | ||
| 27 | $trello->base_uri . 'cards/' . $self->id . '/actions?filter=updateCard:idList,updateList&member=false' | ||
| 28 | ) | ||
| 29 | )->transform( | ||
| 30 | done => sub { | ||
| 31 | map Net::Async::Trello::CardAction->new( | ||
| 32 | %$_, | ||
| 33 | board => $self, | ||
| 34 | trello => $trello | ||
| 35 | 0 | ▶ | ), @{ $_[0] } |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 36 | } | ||
| 37 | ) | ||
| 38 | 0 | } | |
| 39 | |||
| 40 | sub update { | ||
| 41 | 0 | ▶ | my ($self, %args) = @_; |
|
Subroutine
update: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 42 | 0 | my $trello = $self->trello; | |
| 43 | 0 | $trello->http_put( | |
| 44 | uri => URI->new( | ||
| 45 | $trello->base_uri . 'cards/' . $self->id | ||
| 46 | ), | ||
| 47 | body => \%args | ||
| 48 | ) | ||
| 49 | } | ||
| 50 | |||
| 51 | 2 | 1; | |
| 52 | |||