File Coverage

blib/lib/Telegram/Bot/Object/User.pm
Criterion Covered Total %
statement 4 4 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod 0 1 0.0
total 6 7 85.7


line stmt bran cond sub pod time code
1             package Telegram::Bot::Object::User;
2             $Telegram::Bot::Object::User::VERSION = '0.021';
3             # ABSTRACT: The base class for Telegram message 'User' type.
4              
5              
6 5     5   33 use Mojo::Base 'Telegram::Bot::Object::Base';
  5         9  
  5         38  
7              
8             has 'id';
9             has 'is_bot';
10             has 'first_name';
11             has 'last_name'; # optional
12             has 'username'; # optional
13             has 'language_code'; # optional
14              
15             sub fields {
16 14     14 0 71 return { scalar => [qw/id is_bot first_name last_name username language_code/]
17             };
18             }
19              
20             1;
21              
22             __END__