File Coverage

blib/lib/Telegram/Bot/Object/MessageEntity.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::MessageEntity;
2             $Telegram::Bot::Object::MessageEntity::VERSION = '0.023';
3             # ABSTRACT: The base class for Telegram 'MessageEntity' type objects
4              
5              
6 5     5   39 use Mojo::Base 'Telegram::Bot::Object::Base';
  5         10  
  5         38  
7 5     5   792 use Telegram::Bot::Object::User;
  5         10  
  5         26  
8              
9             has 'type';
10             has 'offset';
11             has 'length';
12             has 'url';
13             has 'user'; #User
14              
15             sub fields {
16             return {
17 0     0 0   'scalar' => [qw/type offset length url/],
18             'Telegram::Bot::Object::User' => [qw/user/],
19             };
20             }
21              
22             1;
23              
24             __END__