File Coverage

blib/lib/Telegram/Bot/Object/PhotoSize.pm
Criterion Covered Total %
statement 7 7 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod 0 1 0.0
total 10 11 90.9


line stmt bran cond sub pod time code
1             package Telegram::Bot::Object::PhotoSize;
2             $Telegram::Bot::Object::PhotoSize::VERSION = '0.023';
3             # ABSTRACT: The base class for Telegram message 'PhotoSize' type.
4              
5              
6 5     5   34 use Mojo::Base 'Telegram::Bot::Object::Base';
  5         13  
  5         28  
7 5     5   865 use Carp qw/croak/;
  5         35  
  5         709  
8              
9             has 'file_id';
10             has 'width';
11             has 'height';
12             has 'file_size';
13              
14             sub fields {
15 8     8 0 38 return { scalar => [qw/file_id width height file_size/]
16             };
17             }
18              
19             1;
20              
21             __END__