line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Message::Passing::Role::Output; |
2
|
17
|
|
|
17
|
|
82001
|
use Moo::Role; |
|
17
|
|
|
|
|
37
|
|
|
17
|
|
|
|
|
191
|
|
3
|
17
|
|
|
17
|
|
14888
|
use JSON qw/ to_json /; |
|
17
|
|
|
|
|
134376
|
|
|
17
|
|
|
|
|
124
|
|
4
|
17
|
|
|
17
|
|
3182
|
use Scalar::Util qw/ blessed /; |
|
17
|
|
|
|
|
34
|
|
|
17
|
|
|
|
|
6917
|
|
5
|
|
|
|
|
|
|
#use namespace::clean -except => 'meta'; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
requires 'consume'; |
8
|
|
|
|
|
|
|
|
9
|
17
|
|
|
17
|
|
214
|
no Moo::Role; |
|
17
|
|
|
|
|
36
|
|
|
17
|
|
|
|
|
146
|
|
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 |