File Coverage

blib/lib/Telegram/Bot/Object/VideoNote.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::VideoNote;
2             $Telegram::Bot::Object::VideoNote::VERSION = '0.024';
3             # ABSTRACT: The base class for Telegram 'VideoNote' type objects
4              
5              
6 5     5   36 use Mojo::Base 'Telegram::Bot::Object::Base';
  5         10  
  5         27  
7 5     5   777 use Telegram::Bot::Object::PhotoSize;
  5         12  
  5         23  
8              
9             has 'file_id';
10             has 'length';
11             has 'duration';
12             has 'mime_type';
13             has 'thumb'; #PhotoSize
14             has 'file_size';
15              
16             sub fields {
17 0     0 0   return { scalar => [qw/file_id length duration mime_type file_size/],
18             'Telegram::Bot::Object::PhotoSize' => [qw/thumb /],
19              
20             };
21             }
22              
23             1;
24              
25             __END__