File Coverage

blib/lib/Telegram/Bot/Object/Video.pm
Criterion Covered Total %
statement 6 7 85.7
branch n/a
condition n/a
subroutine 2 3 66.6
pod 0 1 0.0
total 8 11 72.7


line stmt bran cond sub pod time code
1             package Telegram::Bot::Object::Video;
2             $Telegram::Bot::Object::Video::VERSION = '0.024';
3             # ABSTRACT: The base class for Telegram 'Video' object.
4              
5              
6 5     5   33 use Mojo::Base 'Telegram::Bot::Object::Base';
  5         9  
  5         27  
7 5     5   751 use Telegram::Bot::Object::PhotoSize;
  5         11  
  5         25  
8              
9             has 'file_id';
10             has 'width';
11             has 'height';
12             has 'duration';
13             has 'thumb'; #PhotoSize
14             has 'mime_type';
15             has 'file_size';
16              
17             sub fields {
18 0     0 0   return { scalar => [qw/file_id width height duration
19             mime_type file_size /],
20             'Telegram::Bot::Object::PhotoSize' => [qw/thumb/]
21             };
22             }
23              
24             1;
25              
26             __END__