File Coverage

blib/lib/Telegram/Bot/Object/Game.pm
Criterion Covered Total %
statement 12 14 85.7
branch n/a
condition n/a
subroutine 4 6 66.6
pod 1 2 50.0
total 17 22 77.2


line stmt bran cond sub pod time code
1             package Telegram::Bot::Object::Game;
2             $Telegram::Bot::Object::Game::VERSION = '0.023';
3             # ABSTRACT: The base class for Telegram message 'Game' type.
4              
5              
6 5     5   48 use Mojo::Base 'Telegram::Bot::Object::Base';
  5         10  
  5         31  
7 5     5   833 use Telegram::Bot::Object::PhotoSize;
  5         10  
  5         25  
8 5     5   152 use Telegram::Bot::Object::Animation;
  5         10  
  5         23  
9 5     5   144 use Telegram::Bot::Object::MessageEntity;
  5         12  
  5         25  
10              
11             has 'title';
12             has 'description';
13             has 'photo'; # Array of PhotoSize
14             has 'text';
15             has 'text_entities'; #Array of MessageEntity
16             has 'animation'; #Animation
17              
18             sub fields {
19 0     0 0   return { scalar => [qw/title description text/],
20             'Telegram::Bot::Object::PhotoSize' => [qw/photo/],
21             'Telegram::Bot::Object::MessageEntity' => [qw/text_entities/],
22             'Telegram::Bot::Object::Animation' => [qw/animation/],
23             };
24             }
25              
26 0     0 1   sub arrays { qw/photo text_entities/ }
27              
28             1;
29              
30             __END__