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