File Coverage

blib/lib/Telegram/Bot/Object/Sticker.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::Sticker;
2             $Telegram::Bot::Object::Sticker::VERSION = '0.023';
3             # ABSTRACT: The base class for Telegram message 'Sticker' type.
4              
5              
6 5     5   94 use Mojo::Base 'Telegram::Bot::Object::Base';
  5         10  
  5         35  
7 5     5   779 use Telegram::Bot::Object::PhotoSize;
  5         11  
  5         27  
8              
9             has 'file_id';
10             has 'width';
11             has 'height';
12             has 'thumb'; # PhotoSize
13             has 'emoji';
14             has 'set_name';
15             # has 'mask_position'; # XXX TODO
16             has 'file_size';
17              
18             sub fields {
19 3     3 0 17 return { scalar => [qw/file_id width height emoji
20             set_name file_size /],
21             'Telegram::Bot::Object::PhotoSize' => [ qw/thumb/ ],
22             };
23             }
24              
25             1;
26              
27             __END__