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.024';
3             # ABSTRACT: The base class for Telegram message 'Game' type.
4              
5              
6 5     5   35 use Mojo::Base 'Telegram::Bot::Object::Base';
  5         10  
  5         27  
7 5     5   763 use Telegram::Bot::Object::PhotoSize;
  5         10  
  5         37  
8 5     5   176 use Telegram::Bot::Object::Animation;
  5         12  
  5         24  
9 5     5   150 use Telegram::Bot::Object::MessageEntity;
  5         11  
  5         22  
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__