File Coverage

blib/lib/Telegram/Bot/Object/Animation.pm
Criterion Covered Total %
statement 9 10 90.0
branch n/a
condition n/a
subroutine 3 4 75.0
pod 0 1 0.0
total 12 15 80.0


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