Collector/Serializer/JSON.pm

filter: Statementstmt 100% 15 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 1 / 1 totaltotal 100% 20 / 20 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Collector/Commands.pm ↑ Summary
1 package Data::Collector::Serializer::JSON;
2 {
3 4 $Data::Collector::Serializer::JSON::VERSION = '0.15';
4 }
5 # ABSTRACT: A JSON serializer for Data::Collector
6  
7 4 ▶use JSON;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 4 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 4 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 5 ▶sub serialize {
Subroutine serialize: called CC=1 SCAR=0.0
Pod documented
12 5 my ( $self, $data ) = @_;
13  
14 5 return encode_json $data;
15 }
16  
17 4 __PACKAGE__->meta->make_immutable;
18 4 1;
19  
20  
21  
22 =pod
23  
24 =head1 NAME
25  
26 Data::Collector::Serializer::JSON - A JSON serializer for Data::Collector
27  
28 =head1 VERSION
29  
30 version 0.15
31  
32 =head1 DESCRIPTION
33  
34 Utilizes L<JSON>.
35  
36 =head1 SUBROUTINES/METHODS
37  
38 =head2 serialize
39  
40 Gets data, serializes it and returns it.
41  
42 =head1 AUTHOR
43  
44 Sawyer X <xsawyerx@cpan.org>
45  
46 =head1 COPYRIGHT AND LICENSE
47  
48 This software is copyright (c) 2012 by Sawyer X.
49  
50 This is free software; you can redistribute it and/or modify it under
51 the same terms as the Perl 5 programming language system itself.
52  
53 =cut
54  
55  
56 __END__
« Collector/Commands.pm ↑ Summary