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 47     47   136319 use strict;
  47         100  
  47         1314  
3 47     47   224 use warnings;
  47         90  
  47         1162  
4 47     47   227 use utf8;
  47         93  
  47         235  
5 47     47   1326 use parent 'LINE::Bot::API::Response::Common';
  47         101  
  47         246  
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 15 sub rich_menu_id { $_[0]->{richMenuId} }
32 0     0 0   sub chat_bar_text { $_[0]->{chatBarText} }
33              
34             1;
35