File Coverage

blib/lib/Telegram/Bot/Object/KeyboardButton.pm
Criterion Covered Total %
statement 3 4 75.0
branch n/a
condition n/a
subroutine 1 2 50.0
pod 0 1 0.0
total 4 7 57.1


line stmt bran cond sub pod time code
1             package Telegram::Bot::Object::KeyboardButton;
2             $Telegram::Bot::Object::KeyboardButton::VERSION = '0.023';
3             # ABSTRACT: The base class for Telegram 'KeyboardButton' type objects
4              
5              
6 5     5   35 use Mojo::Base 'Telegram::Bot::Object::Base';
  5         11  
  5         34  
7              
8             has 'text';
9             has 'request_contact';
10             has 'request_location';
11              
12             sub fields {
13 0     0 0   return { 'scalar' => [qw/text request_contact request_location/],
14             };
15             }
16              
17             1;
18              
19             __END__