File Coverage

blib/lib/Net/Posterous/Media/Video.pm
Criterion Covered Total %
statement 9 10 90.0
branch n/a
condition n/a
subroutine 3 4 75.0
pod 1 1 100.0
total 13 15 86.6


line stmt bran cond sub pod time code
1             package Net::Posterous::Media::Video;
2              
3 1     1   6 use strict;
  1         2  
  1         36  
4 1     1   6 use base qw(Net::Posterous::Object);
  1         2  
  1         76  
5              
6 1     1   7 use Class::Accessor "antlers";
  1         2  
  1         44  
7              
8             =head1 NAME
9              
10             Net::Posterous::Media::Video - represent an video object in Net::Posterous
11              
12             =head1 METHODS
13              
14             =cut
15              
16              
17             =head2 url
18              
19             Get or set the URL of this video.
20              
21             =cut
22              
23             has url => ( is => "rw", isa => "Str" );
24              
25              
26             =head2 thumb_url
27              
28             Get or set the URL of the thumbnail for this video.
29              
30             =cut
31              
32             sub thumb_url {
33 0     0 1   shift->thumb(@_);
34             }
35              
36             has thumb => ( is => "rw", isa => "Str" );
37              
38             =head2 filesize
39              
40             Get or set the filesize for this video.
41              
42             =cut
43             has filesize => ( is => "rw", isa => "Str" );
44              
45             =head2 flv
46              
47             Get or set the URL to the flv transcoding for this video.
48              
49             =cut
50              
51             has flv => ( is => "rw", isa => "Str" );
52              
53             =head2 mp4
54              
55             Get or set the URL to the mp4 transcoding for this video.
56              
57             =cut
58             has mp4 => ( is => "rw", isa => "Str" );
59              
60             1;
61