File Coverage

blib/lib/LINE/Bot/API/Response/RichMenu.pm
Criterion Covered Total %
statement 14 20 70.0
branch n/a
condition n/a
subroutine 6 12 50.0
pod 0 8 0.0
total 20 40 50.0


line stmt bran cond sub pod time code
1             package LINE::Bot::API::Response::RichMenu;
2 51     51   137959 use strict;
  51         114  
  51         1443  
3 51     51   270 use warnings;
  51         101  
  51         1316  
4 51     51   264 use utf8;
  51         101  
  51         265  
5 51     51   1573 use parent 'LINE::Bot::API::Response::Common';
  51         108  
  51         289  
6              
7              
8             =head1 NAME
9              
10             LINE::Bot::API::Response::RichMenu
11              
12             =head1 DESCRIPTION
13              
14             This class correspond to the "Rich menu response object" as described in
15             this page: L
16              
17             There is a method for each top-level properties, but values become
18             simple perl variablse. Num, Str, HashRef, or ArrayRef -- instead of
19             being objects all the way down.
20              
21             =cut
22              
23 1     1 0 6 sub richMenuId { $_[0]->{richMenuId} }
24 0     0 0 0 sub chatBarText { $_[0]->{chatBarText} }
25 0     0 0 0 sub size { $_[0]->{size} }
26 0     0 0 0 sub selected { $_[0]->{selected} }
27 0     0 0 0 sub name { $_[0]->{nam} }
28 0     0 0 0 sub areas { $_[0]->{areas} }
29              
30             # Aliases
31 2     2 0 13 sub rich_menu_id { $_[0]->{richMenuId} }
32 0     0 0   sub chat_bar_text { $_[0]->{chatBarText} }
33              
34             1;
35