File Coverage

blib/lib/Telegram/Bot/Object/ReplyKeyboardMarkup.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::ReplyKeyboardMarkup;
2             $Telegram::Bot::Object::ReplyKeyboardMarkup::VERSION = '0.023';
3             # ABSTRACT: The base class for Telegram 'ReplyKeyboardMarkup' type objects
4              
5              
6 5     5   34 use Mojo::Base 'Telegram::Bot::Object::Base';
  5         11  
  5         34  
7 5     5   3170 use Telegram::Bot::Object::KeyboardButton;
  5         15  
  5         37  
8              
9             has 'keyboard';
10             has 'resize_keyboard';
11             has 'one_time_keyboard';
12             has 'selective';
13              
14             sub fields {
15 0     0 0   return { 'scalar' => [qw/resize_keyboard one_time_keyboard selective/],
16             'Telegram::Bot::Object::KeyboardButton' => [qw/keyboard/],
17             };
18             }
19              
20             sub array_of_arrays {
21 0     0 1   qw/keyboard/;
22             }
23              
24             1;
25              
26             __END__