Telegram/InputVenueMessageContent.pm

filter: Statementstmt 57.1% 8 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 33.3% 3 / 9 Podpod 100% 6 / 6 totaltotal 58.6% 17 / 29 SCAR 0.8
CC
1
Cov
57%
address
2.0
foursquare_id
2.0
foursquare_type
2.0
CRAP 1.1
« Telegram/InlineQueryResultCachedSticker.pm ↑ Summary Telegram/ShippingAddress.pm »
1 # -*- perl -*-
2 ##----------------------------------------------------------------------------
3 ## Net/API/Telegram/InputVenueMessageContent.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/05/20
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::InputVenueMessageContent;
15 BEGIN
16 {
17 1 ▶ use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 1 ▶ use parent qw( Net::API::Telegram::Generic );
Subroutine BEGIN: called CC=1 SCAR=0.0
19 1 ▶ our( $VERSION ) = '0.1';
Subroutine BEGIN: called CC=1 SCAR=0.0
20 };
21  
22 0 ▶sub address { return( shift->_set_get_scalar( 'address', @_ ) ); }
Subroutine address: not called CC=1 SCAR=6.9
Pod documented
23  
24 0 ▶sub foursquare_id { return( shift->_set_get_scalar( 'foursquare_id', @_ ) ); }
Subroutine foursquare_id: not called CC=1 SCAR=6.9
Pod documented
25  
26 0 ▶sub foursquare_type { return( shift->_set_get_scalar( 'foursquare_type', @_ ) ); }
Subroutine foursquare_type: not called CC=1 SCAR=6.9
Pod documented
27  
28 0 ▶sub latitude { return( shift->_set_get_number( 'latitude', @_ ) ); }
Subroutine latitude: not called CC=1 SCAR=6.9
Pod documented
29  
30 0 ▶sub longitude { return( shift->_set_get_number( 'longitude', @_ ) ); }
Subroutine longitude: not called CC=1 SCAR=6.9
Pod documented
31  
32 0 ▶sub title { return( shift->_set_get_scalar( 'title', @_ ) ); }
Subroutine title: not called CC=1 SCAR=6.9
Pod documented
33  
34 1 1;
35  
36 __END__
37  
38 =encoding utf-8
39  
40 =head1 NAME
41  
42 Net::API::Telegram::InputVenueMessageContent - The content of a venue message to be sent as the result of an inline query
43  
44 =head1 SYNOPSIS
45  
46 my $msg = Net::API::Telegram::InputVenueMessageContent->new( %data ) ||
47 die( Net::API::Telegram::InputVenueMessageContent->error, "\n" );
48  
49 =head1 DESCRIPTION
50  
51 L<Net::API::Telegram::InputVenueMessageContent> is a Telegram Message Object as defined here L<https://core.telegram.org/bots/api#inputvenuemessagecontent>
52  
53 This module has been automatically generated from Telegram API documentation by the script scripts/telegram-doc2perl-methods.pl.
54  
55 =head1 METHODS
56  
57 =over 4
58  
59 =item B<new>( {INIT HASH REF}, %PARAMETERS )
60  
61 B<new>() will create a new object for the package, pass any argument it might receive
62 to the special standard routine B<init> that I<must> exist.
63 Then it returns what returns B<init>().
64  
65 The valid parameters are as follow. Methods available here are also parameters to the B<new> method.
66  
67 =over 8
68  
69 =item * I<verbose>
70  
71 =item * I<debug>
72  
73 =back
74  
75 =item B<address>( String )
76  
77 Address of the venue
78  
79 =item B<foursquare_id>( String )
80  
81 Optional. Foursquare identifier of the venue, if known
82  
83 =item B<foursquare_type>( String )
84  
85 Optional. Foursquare type of the venue, if known. (For example, I<arts_entertainment/default>, I<arts_entertainment/aquarium> or I<food/icecream>.)
86  
87 =item B<latitude>( Float )
88  
89 Latitude of the venue in degrees
90  
91 =item B<longitude>( Float )
92  
93 Longitude of the venue in degrees
94  
95 =item B<title>( String )
96  
97 Name of the venue
98  
99 =back
100  
101 =head1 COPYRIGHT
102  
103 Copyright (c) 2000-2019 DEGUEST Pte. Ltd.
104  
105 =head1 AUTHOR
106  
107 Jacques Deguest E<lt>F<jack@deguest.jp>E<gt>
108  
109 =head1 SEE ALSO
110  
111 L<Net::API::Telegram>
112  
113 =head1 COPYRIGHT & LICENSE
114  
115 Copyright (c) 2018-2019 DEGUEST Pte. Ltd.
116  
117 You can use, copy, modify and redistribute this package and associated
118 files under the same terms as Perl itself.
119  
120 =cut
121  
« Telegram/InlineQueryResultCachedSticker.pm ↑ Summary Telegram/ShippingAddress.pm »