Bot/Object/User.pm

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod 0.0% 0 / 1 totaltotal 93.3% 14 / 15 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
fields
1.0
CRAP 1.0
« Bot/Object/Location.pm ↑ Summary Bot/Object/PhotoSize.pm »
1 package Telegram::Bot::Object::User;
2 6 $Telegram::Bot::Object::User::VERSION = '0.029';
3 # ABSTRACT: The base class for Telegram message 'User' type.
4  
5  
6 6 ▶use Mojo::Base 'Telegram::Bot::Object::Base';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 6 has 'id';
9 6 has 'is_bot';
10 6 has 'first_name';
11 6 has 'last_name'; # optional
12 6 has 'username'; # optional
13 6 has 'language_code'; # optional
14  
15 18 ▶sub fields {
Subroutine fields: called CC=1 SCAR=0.0
Pod undocumented
16 18 return { scalar => [qw/id is_bot first_name last_name username language_code/]
17 };
18 }
19  
20 6 1;
21  
22 __END__
« Bot/Object/Location.pm ↑ Summary Bot/Object/PhotoSize.pm »