File Coverage

blib/lib/Telegram/Bot/Object/InlineKeyboardButton.pm
Criterion Covered Total %
statement 9 10 90.0
branch n/a
condition n/a
subroutine 3 4 75.0
pod 0 1 0.0
total 12 15 80.0


line stmt bran cond sub pod time code
1             package Telegram::Bot::Object::InlineKeyboardButton;
2             $Telegram::Bot::Object::InlineKeyboardButton::VERSION = '0.024';
3             # ABSTRACT: The base class for Telegram 'InlineKeyboardButton' type objects
4              
5              
6 5     5   34 use Mojo::Base 'Telegram::Bot::Object::Base';
  5         11  
  5         29  
7 5     5   2956 use Telegram::Bot::Object::LoginUrl;
  5         13  
  5         39  
8 5     5   2245 use Telegram::Bot::Object::CallbackGame;
  5         11  
  5         60  
9              
10             has 'text';
11             has 'url';
12             has 'login_url'; #LoginUrl
13             has 'callback_data';
14             has 'switch_inline_query';
15             has 'switch_inline_query_current_chat';
16             has 'callback_game'; # CallbackGame
17             has 'pay';
18              
19             sub fields {
20 0     0 0   return { 'scalar' => [qw/text url callback_data switch_inline_query
21             switch_inline_query_current_chat switch_inline_query_current_chat
22             pay/],
23             'Telegram::Bot::Object::LoginUrl' => [qw/login_url/],
24             'Telegram::Bot::Object::CallbackGame'=> [qw/callback_game/],
25             };
26             }
27              
28             1;
29              
30             __END__