File Coverage

blib/lib/Telegram/Bot/Object/Invoice.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::Invoice;
2             $Telegram::Bot::Object::Invoice::VERSION = '0.021';
3             # ABSTRACT: The base class for Telegram 'Invoice' type objects
4              
5              
6 5     5   33 use Mojo::Base 'Telegram::Bot::Object::Base';
  5         11  
  5         27  
7              
8             has 'title';
9             has 'description';
10             has 'start_parameter';
11             has 'currency';
12             has 'total_amount';
13              
14             sub fields {
15 0     0 0   return { scalar => [qw/title description start_parameter currency total_amount/],
16             };
17             }
18              
19             1;
20              
21             __END__