File Coverage

blib/lib/MsgPack/Decoder/Event/Decoded.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package MsgPack::Decoder::Event::Decoded;
2             our $AUTHORITY = 'cpan:YANICK';
3             # ABSTRACT: MsgPacker::Decoder decoding event
4             $MsgPack::Decoder::Event::Decoded::VERSION = '2.0.2';
5              
6 1     1   7 use Moose;
  1         2  
  1         6  
7             extends 'Beam::Event';
8              
9             has payload => (
10             is => 'ro',
11             isa => 'ArrayRef',
12             required => 1,
13             traits => [ 'Array' ],
14             handles => {
15             payload_list => 'elements',
16             },
17             );
18              
19             1;
20              
21             __END__
22              
23             =pod
24              
25             =encoding UTF-8
26              
27             =head1 NAME
28              
29             MsgPack::Decoder::Event::Decoded - MsgPacker::Decoder decoding event
30              
31             =head1 VERSION
32              
33             version 2.0.2
34              
35             =head1 DESCRIPTION
36              
37             Event emitted by a L<MsgPacker::Decoder> object configured as an emitter
38             when incoming data structured are decoded.
39              
40             =head1 METHODS
41              
42             =head2 payload_list
43              
44             Returns a list of all decoded data structures.
45              
46             =head1 AUTHOR
47              
48             Yanick Champoux <yanick@cpan.org>
49              
50             =head1 COPYRIGHT AND LICENSE
51              
52             This software is copyright (c) 2019, 2017, 2016, 2015 by Yanick Champoux.
53              
54             This is free software; you can redistribute it and/or modify it under
55             the same terms as the Perl 5 programming language system itself.
56              
57             =cut