File Coverage

blib/lib/Telegram/Bot/Object/Contact.pm
Criterion Covered Total %
statement 3 4 75.0
branch n/a
condition n/a
subroutine 1 2 50.0
pod 0 1 0.0
total 4 7 57.1


line stmt bran cond sub pod time code
1             package Telegram::Bot::Object::Contact;
2             $Telegram::Bot::Object::Contact::VERSION = '0.021';
3             # ABSTRACT: The base class for Telegram 'Contact' objects.
4              
5              
6 5     5   33 use Mojo::Base 'Telegram::Bot::Object::Base';
  5         9  
  5         27  
7              
8             has 'phone_number';
9             has 'first_name';
10             has 'last_name';
11             has 'user_id';
12              
13             sub fields {
14 0     0 0   return { scalar => [qw/phone_number first_name last_name user_id/],
15             };
16             }
17              
18             1;
19              
20             __END__