Collector/Serializer/SimpleXML.pm untested

filter: Statementstmt 0.0% 0 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 20 CC 1 SCAR 6.9
CC
1
Cov
0%
serialize
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Data::Collector::Serializer::SimpleXML;
2 {
3 $Data::Collector::Serializer::SimpleXML::VERSION = '0.15';
4 }
5 # ABSTRACT: A XML::Simple serializer for Data::Collector
6  
7 use Moose;
8 use XML::Simple;
9 use namespace::autoclean;
10  
11 sub serialize {
12 my ( $self, $data ) = @_;
13  
14 return XMLout($data);
15 }
16  
17 __PACKAGE__->meta->make_immutable;
18 1;
19  
20  
21  
22 =pod
23  
24 =head1 NAME
25  
26 Data::Collector::Serializer::SimpleXML - A XML::Simple serializer for Data::Collector
27  
28 =head1 VERSION
29  
30 version 0.15
31  
32 =head1 DESCRIPTION
33  
34 Utilizes L<XML::Simple>.
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__