line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Message::Passing::Role::Output; |
2
|
17
|
|
|
17
|
|
104905
|
use Moo::Role; |
|
17
|
|
|
|
|
42
|
|
|
17
|
|
|
|
|
217
|
|
3
|
17
|
|
|
17
|
|
41678
|
use JSON qw/ to_json /; |
|
17
|
|
|
|
|
185697
|
|
|
17
|
|
|
|
|
136
|
|
4
|
17
|
|
|
17
|
|
3159
|
use Scalar::Util qw/ blessed /; |
|
17
|
|
|
|
|
41
|
|
|
17
|
|
|
|
|
1434
|
|
5
|
|
|
|
|
|
|
#use namespace::clean -except => 'meta'; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
requires 'consume'; |
8
|
|
|
|
|
|
|
|
9
|
17
|
|
|
17
|
|
119
|
no Moo::Role; |
|
17
|
|
|
|
|
36
|
|
|
17
|
|
|
|
|
153
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
1; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
=head1 NAME |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
Message::Passing::Role::Output - Consumes messages |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=head1 DESCRIPTION |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
This is a role for classes which consumer messages (e.g. a Message::Passing output) |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head1 REQUIRED METHODS |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
=head2 consume |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
Consume a message |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=head1 SEE ALSO |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=over |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=item L |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=item L |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=back |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head1 SPONSORSHIP |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
This module exists due to the wonderful people at Suretec Systems Ltd. |
40
|
|
|
|
|
|
|
who sponsored its development for its |
41
|
|
|
|
|
|
|
VoIP division called SureVoIP for use with |
42
|
|
|
|
|
|
|
the SureVoIP API - |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 AUTHOR, COPYRIGHT AND LICENSE |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
See L. |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=cut |