File Coverage

blib/lib/Telegram/Bot/Object/EncryptedPassportElement.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::EncryptedPassportElement;
2             $Telegram::Bot::Object::EncryptedPassportElement::VERSION = '0.024';
3             # ABSTRACT: The base class for Telegram 'EncryptedPassportElement' type objects
4              
5              
6 5     5   37 use Mojo::Base 'Telegram::Bot::Object::Base';
  5         11  
  5         27  
7              
8             # XXX Implement rest of this
9             # https://core.telegram.org/bots/api#encryptedpassportelement
10              
11             has 'type';
12             has 'data';
13             has 'phone_number';
14             has 'email';
15              
16             # XXX more here
17              
18             sub fields {
19 0     0 0   return { 'scalar' => [qw/type data phone_number email/] };
20             }
21              
22             1;
23              
24             __END__