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.024';
3             # ABSTRACT: The base class for Telegram 'Invoice' type objects
4              
5              
6 5     5   36 use Mojo::Base 'Telegram::Bot::Object::Base';
  5         12  
  5         28  
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__