File Coverage

blib/lib/XML/NewsML_G2/Inline_Data.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 XML::NewsML_G2::Inline_Data;
2              
3 18     18   8876 use Moose;
  18         39  
  18         105  
4 18     18   73893 use namespace::autoclean;
  18         41  
  18         115  
5              
6             has 'data', isa => 'Str', is => 'rw', required => 1;
7             has 'mimetype', isa => 'Str', is => 'rw', default => 'text/plain';
8              
9             __PACKAGE__->meta->make_immutable;
10              
11             1;
12             __END__
13              
14             =head1 NAME
15              
16             XML::NewsML_G2::Inline_Data - inline data specification
17              
18             =head1 SYNOPSIS
19              
20             my $data = XML::NewsML_G2::Inline_Data->new
21             (mimetype => 'text/plain',
22             data => 'Hello World'
23             );
24              
25             =head1 ATTRIBUTES
26              
27             =over 4
28              
29             =item data
30              
31             The inline string data
32              
33             =item mimetype
34              
35             The MIME type of the data (e.g. text/plain)
36              
37             =back
38              
39             =head1 AUTHOR
40              
41             Christian Eder C<< <christian.eder@apa.at> >>
42              
43             =head1 LICENCE AND COPYRIGHT
44              
45             Copyright (c) 2015, APA-IT. All rights reserved.
46              
47             See L<XML::NewsML_G2> for the license.