File Coverage

blib/lib/Telegram/Bot/Object/Venue.pm
Criterion Covered Total %
statement 6 7 85.7
branch n/a
condition n/a
subroutine 2 3 66.6
pod 0 1 0.0
total 8 11 72.7


line stmt bran cond sub pod time code
1             package Telegram::Bot::Object::Venue;
2             $Telegram::Bot::Object::Venue::VERSION = '0.024';
3             # ABSTRACT: The base class for Telegram 'LoginUrl' type objects
4              
5              
6 5     5   35 use Mojo::Base 'Telegram::Bot::Object::Base';
  5         9  
  5         26  
7 5     5   750 use Telegram::Bot::Object::Location;
  5         11  
  5         30  
8              
9             has 'location'; #Location
10             has 'title';
11             has 'address';
12             has 'foursquare_id';
13             has 'foursquare_type';
14              
15             sub fields {
16 0     0 0   return { 'scalar' => [qw/title address
17             foursquare_id foursquare_type/],
18             'Telegram::Bot::Object::Location' => [qw/location/] };
19              
20             }
21              
22             1;
23              
24             __END__