File Coverage

blib/lib/Resque/Encoder.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             package Resque::Encoder;
2             # ABSTRACT: Moose role for encoding Resque structures
3             $Resque::Encoder::VERSION = '0.40';
4 9     9   9941 use Moose::Role;
  9         44329  
  9         34  
5 9     9   56477 use JSON;
  9         96384  
  9         51  
6              
7             has encoder => ( is => 'ro', default => sub { JSON->new->utf8 } );
8              
9             1;
10              
11             __END__
12              
13             =pod
14              
15             =encoding UTF-8
16              
17             =head1 NAME
18              
19             Resque::Encoder - Moose role for encoding Resque structures
20              
21             =head1 VERSION
22              
23             version 0.40
24              
25             =head1 ATTRIBUTES
26              
27             =head2 encoder
28              
29             JSON encoder by default.
30              
31             =head1 AUTHOR
32              
33             Diego Kuperman <diego@freekeylabs.com>
34              
35             =head1 COPYRIGHT AND LICENSE
36              
37             This software is copyright (c) 2021 by Diego Kuperman.
38              
39             This is free software; you can redistribute it and/or modify it under
40             the same terms as the Perl 5 programming language system itself.
41              
42             =cut