File Coverage

blib/lib/Telegram/Bot/Object/Audio.pm
Criterion Covered Total %
statement 3 4 75.0
branch n/a
condition n/a
subroutine 1 2 50.0
pod 0 1 0.0
total 4 7 57.1


line stmt bran cond sub pod time code
1             package Telegram::Bot::Object::Audio;
2             $Telegram::Bot::Object::Audio::VERSION = '0.021';
3             # ABSTRACT: The base class for Telegram 'Audio' type objects
4              
5              
6 5     5   31 use Mojo::Base 'Telegram::Bot::Object::Base';
  5         10  
  5         41  
7              
8             has 'file_id';
9             has 'duration';
10             has 'performer';
11             has 'title';
12             has 'mime_type';
13             has 'file_size';
14             has 'thumb'; #PhotoSize
15              
16             sub fields {
17 0     0 0   return { scalar => [qw/file_id duration performer title mime_type file_size/],
18             'Telegram::Bot::Object::PhotoSize' => [qw/thumb/],
19             };
20             }
21              
22             1;
23              
24             __END__