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.021';
3             # ABSTRACT: The base class for Telegram 'InlineKeyboardButton' type objects
4              
5              
6 5     5   30 use Mojo::Base 'Telegram::Bot::Object::Base';
  5         12  
  5         28  
7 5     5   2549 use Telegram::Bot::Object::LoginUrl;
  5         12  
  5         34  
8 5     5   2024 use Telegram::Bot::Object::CallbackGame;
  5         13  
  5         46  
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__