blib/lib/XML/NewsML_G2/News_Item_Audio.pm

filter: Statementstmt 100% 11 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 13 / 13 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/XML/NewsML_G2/Media_Topic.pm ↑ Summary blib/lib/XML/NewsML_G2/News_Item_Graphics.pm »
1 package XML::NewsML_G2::News_Item_Audio;
2  
3 19 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 19 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 19 extends 'XML::NewsML_G2::News_Item';
7  
8 19 has '+nature', default => 'audio';
9 19 has '+remotes', isa => 'HashRef[XML::NewsML_G2::Audio]';
10  
11 19 __PACKAGE__->meta->make_immutable;
12  
13 19 1;
14 __END__
15  
16 =head1 NAME
17  
18 XML::NewsML_G2::News_Item_Audio - a audio news item (story)
19  
20 =for test_synopsis
21 my ($provider, $service, $genre1, $genre2);
22  
23 =head1 SYNOPSIS
24  
25 my $ni = XML::NewsML_G2::News_Item_Audio->new
26 (guid => "tag:example.com,2013:service:date:number",
27 title => "Story title",
28 slugline => "the/slugline",
29 language => 'de',
30 provider => $provider,
31 service => $service,
32 );
33  
34 $ni->add_genre($genre1, $genre2);
35 $ni->add_source('APA');
36 my $audio = XML::NewsML_G2::Audio->new(
37 size => '23013531', duration => 30, audiochannels => 'stereo',
38 mimetype => 'audio/mpeg'
39 );
40  
41 $ni->add_remote('file:///tmp/files/123.mp3', $audio);
42  
43  
44 =head1 AUTHOR
45  
46 Mario Paumann C<< <mario.paumann@apa.at> >>
47  
48 =head1 LICENCE AND COPYRIGHT
49  
50 Copyright (c) 2013, APA-IT. All rights reserved.
51  
52 See L<XML::NewsML_G2> for the license.
« blib/lib/XML/NewsML_G2/Media_Topic.pm ↑ Summary blib/lib/XML/NewsML_G2/News_Item_Graphics.pm »