File Coverage

blib/lib/Telegram/Bot/Object/ChatInviteLink.pm
Criterion Covered Total %
statement 9 10 90.0
branch n/a
condition n/a
subroutine 3 5 60.0
pod 1 2 50.0
total 13 17 76.4


line stmt bran cond sub pod time code
1             package Telegram::Bot::Object::ChatInviteLink;
2             $Telegram::Bot::Object::ChatInviteLink::VERSION = '0.029';
3             # ABSTRACT: The base class for the Telegram type "ChatInviteLink".
4              
5              
6 2     2   15 use Mojo::Base 'Telegram::Bot::Object::Base';
  2         4  
  2         15  
7              
8 2     2   481 use Telegram::Bot::Object::User;
  2         14  
  2         13  
9              
10 2     2   71 use Data::Dumper;
  2         3  
  2         439  
11              
12             # basic message stuff
13             has 'creator'; # User
14              
15             has 'invite_link'; # String
16             has 'creates_join_request'; # Boolean
17             has 'is_primary'; # Boolean
18             has 'is_revoked'; # Boolean
19             has 'name'; # String
20             has 'expire_date'; # Integer
21             has 'member_limit'; # Integer
22             has 'pending_join_request_count'; # Integer
23              
24             sub fields {
25             return {
26 0     0 0   'scalar' => [qw/invite_link creates_join_request is_primary is_revoked name expire_date member_limit pending_join_request_count/],
27             'Telegram::Bot::Object::User' => [qw/creator/],
28             };
29             }
30              
31       0 1   sub arrays {
32             }
33              
34              
35             1;
36              
37             __END__