File Coverage

blib/lib/Net/API/Telegram/PassportData.pm
Criterion Covered Total %
statement 7 9 77.7
branch n/a
condition n/a
subroutine 3 5 60.0
pod 2 2 100.0
total 12 16 75.0


line stmt bran cond sub pod time code
1             # -*- perl -*-
2             ##----------------------------------------------------------------------------
3             ## Net/API/Telegram/PassportData.pm
4             ## Version 0.1
5             ## Copyright(c) 2019 Jacques Deguest
6             ## Author: Jacques Deguest <jack@deguest.jp>
7             ## Created 2019/05/29
8             ## Modified 2020/03/28
9             ## All rights reserved.
10             ##
11             ## This program is free software; you can redistribute it and/or modify it
12             ## under the same terms as Perl itself.
13             ##----------------------------------------------------------------------------
14             package Net::API::Telegram::PassportData;
15             BEGIN
16             {
17 1     1   1036 use strict;
  1         2  
  1         34  
18 1     1   6 use parent qw( Net::API::Telegram::Generic );
  1         2  
  1         5  
19 1     1   156 our( $VERSION ) = '0.1';
20             };
21              
22 0     0 1   sub credentials { return( shift->_set_get_object( 'credentials', 'Net::API::Telegram::EncryptedCredentials', @_ ) ); }
23              
24 0     0 1   sub data { return( shift->_set_get_object_array( 'data', 'Net::API::Telegram::EncryptedPassportElement', @_ ) ); }
25              
26             1;
27              
28             __END__
29              
30             =encoding utf-8
31              
32             =head1 NAME
33              
34             Net::API::Telegram::PassportData - Information about Telegram Passport data shared with the bot by the user
35              
36             =head1 SYNOPSIS
37              
38             my $msg = Net::API::Telegram::PassportData->new( %data ) ||
39             die( Net::API::Telegram::PassportData->error, "\n" );
40              
41             =head1 DESCRIPTION
42              
43             L<Net::API::Telegram::PassportData> is a Telegram Message Object as defined here L<https://core.telegram.org/bots/api#passportdata>
44              
45             This module has been automatically generated from Telegram API documentation by the script scripts/telegram-doc2perl-methods.pl.
46              
47             =head1 METHODS
48              
49             =over 4
50              
51             =item B<new>( {INIT HASH REF}, %PARAMETERS )
52              
53             B<new>() will create a new object for the package, pass any argument it might receive
54             to the special standard routine B<init> that I<must> exist.
55             Then it returns what returns B<init>().
56              
57             The valid parameters are as follow. Methods available here are also parameters to the B<new> method.
58              
59             =over 8
60              
61             =item * I<verbose>
62              
63             =item * I<debug>
64              
65             =back
66              
67             =item B<credentials>( L<Net::API::Telegram::EncryptedCredentials> )
68              
69             Encrypted credentials required to decrypt the data
70              
71             =item B<data>( Array of EncryptedPassportElement )
72              
73             Array with information about documents and other Telegram Passport elements that was shared with the bot
74              
75             =back
76              
77             =head1 COPYRIGHT
78              
79             Copyright (c) 2000-2019 DEGUEST Pte. Ltd.
80              
81             =head1 AUTHOR
82              
83             Jacques Deguest E<lt>F<jack@deguest.jp>E<gt>
84              
85             =head1 SEE ALSO
86              
87             L<Net::API::Telegram>
88              
89             =head1 COPYRIGHT & LICENSE
90              
91             Copyright (c) 2018-2019 DEGUEST Pte. Ltd.
92              
93             You can use, copy, modify and redistribute this package and associated
94             files under the same terms as Perl itself.
95              
96             =cut
97