line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Telegram::Bot::Object::Poll; |
2
|
|
|
|
|
|
|
$Telegram::Bot::Object::Poll::VERSION = '0.024'; |
3
|
|
|
|
|
|
|
# ABSTRACT: The base class for Telegram 'Poll' type objects |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
|
6
|
5
|
|
|
5
|
|
33
|
use Mojo::Base 'Telegram::Bot::Object::Base'; |
|
5
|
|
|
|
|
10
|
|
|
5
|
|
|
|
|
26
|
|
7
|
5
|
|
|
5
|
|
2818
|
use Telegram::Bot::Object::PollOption; |
|
5
|
|
|
|
|
14
|
|
|
5
|
|
|
|
|
46
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
has 'id'; |
11
|
|
|
|
|
|
|
has 'question'; |
12
|
|
|
|
|
|
|
has 'options'; # Array of PollOption |
13
|
|
|
|
|
|
|
has 'is_closed'; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub fields { |
16
|
0
|
|
|
0
|
0
|
|
return { scalar => [qw/id question is_closed/], |
17
|
|
|
|
|
|
|
'Telegram::Bot::Object::PollOption' => [qw/options /], |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
}; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub arrays { |
23
|
0
|
|
|
0
|
1
|
|
qw/options/; |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
__END__ |