| 1 | package WWW::Asana::Role::HasStories; | ||
| 2 | 1 | ▶ | BEGIN { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 1 | $WWW::Asana::Role::HasStories::AUTHORITY = 'cpan:GETTY'; | |
| 4 | } | ||
| 5 | { | ||
| 6 | 1 | $WWW::Asana::Role::HasStories::VERSION = '0.003'; | |
| 7 | } | ||
| 8 | # ABSTRACT: Role for Asana classes which have stories | ||
| 9 | |||
| 10 | 1 | ▶ | use MooX::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | |||
| 13 | 0 | ▶ | sub stories { |
|
Subroutine
stories: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 14 | 0 | my ( $self ) = @_; | |
| 15 | 0 | ▶ | $self->do('[Story]', 'GET', $self->own_base_args, 'stories', sub { target => $self }); |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 16 | } | ||
| 17 | |||
| 18 | |||
| 19 | 0 | ▶ | sub create_story { |
|
Subroutine
create_story: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 20 | 0 | my ( $self, @args ) = @_; | |
| 21 | 0 | unshift @args, 'text'; | |
| 22 | 0 | ▶ | $self->do('Story', 'POST', $self->own_base_args, 'stories', { @args }, sub { target => $self }); |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 23 | } | ||
| 24 | |||
| 25 | |||
| 26 | 0 | ▶ | sub comment { shift->create_story(@_) } |
|
Subroutine
comment: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 27 | |||
| 28 | 1 | 1; | |
| 29 | __END__ | ||