File Coverage

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