File Coverage

blib/lib/Telegram/Bot/Object/Poll.pm
Criterion Covered Total %
statement 6 8 75.0
branch n/a
condition n/a
subroutine 2 4 50.0
pod 1 2 50.0
total 9 14 64.2


line stmt bran cond sub pod time code
1             package Telegram::Bot::Object::Poll;
2             $Telegram::Bot::Object::Poll::VERSION = '0.021';
3             # ABSTRACT: The base class for Telegram 'Poll' type objects
4              
5              
6 5     5   31 use Mojo::Base 'Telegram::Bot::Object::Base';
  5         10  
  5         26  
7 5     5   2418 use Telegram::Bot::Object::PollOption;
  5         13  
  5         39  
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__