Bot/Object/ChatInviteLink.pm

filter: Statementstmt 95.2% 20 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 50.0% 1 / 2 totaltotal 85.7% 24 / 28 CC 1 SCAR 1.8
CC
1
Cov
95%
fields
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Bot/Object/InlineKeyboardButton.pm ↑ Summary Bot/Object/ChatMember.pm »
1 package Telegram::Bot::Object::ChatInviteLink;
2 2 $Telegram::Bot::Object::ChatInviteLink::VERSION = '0.029';
3 # ABSTRACT: The base class for the Telegram type "ChatInviteLink".
4  
5  
6 2 ▶use Mojo::Base 'Telegram::Bot::Object::Base';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 2 ▶use Telegram::Bot::Object::User;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 2 ▶use Data::Dumper;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 # basic message stuff
13 2 has 'creator'; # User
14  
15 2 has 'invite_link'; # String
16 2 has 'creates_join_request'; # Boolean
17 2 has 'is_primary'; # Boolean
18 2 has 'is_revoked'; # Boolean
19 2 has 'name'; # String
20 2 has 'expire_date'; # Integer
21 2 has 'member_limit'; # Integer
22 2 has 'pending_join_request_count'; # Integer
23  
24 0 ▶sub fields {
Subroutine fields: not called CC=1 SCAR=6.9
Pod undocumented
25 return {
26 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 ▶sub arrays {
Subroutine arrays: not called CC=1 SCAR=0.0
Pod documented
32 }
33  
34  
35 2 1;
36  
37 __END__
« Bot/Object/InlineKeyboardButton.pm ↑ Summary Bot/Object/ChatMember.pm »