| blib/lib/Telegram/Bot/Object/Location.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % | 
| statement | 4 | 4 | 100.0 | 
| branch | n/a | ||
| condition | n/a | ||
| subroutine | 2 | 2 | 100.0 | 
| pod | 0 | 1 | 0.0 | 
| total | 6 | 7 | 85.7 | 
| line | stmt | bran | cond | sub | pod | time | code | 
|---|---|---|---|---|---|---|---|
| 1 | package Telegram::Bot::Object::Location; | ||||||
| 2 | $Telegram::Bot::Object::Location::VERSION = '0.023'; | ||||||
| 3 | # ABSTRACT: The base class for Telegram message 'Location' type. | ||||||
| 4 | |||||||
| 5 | |||||||
| 6 | 5 | 5 | 37 | use Mojo::Base 'Telegram::Bot::Object::Base'; | |||
| 5 | 12 | ||||||
| 5 | 31 | ||||||
| 7 | |||||||
| 8 | has 'longitude'; | ||||||
| 9 | has 'latitude'; | ||||||
| 10 | |||||||
| 11 | sub fields { | ||||||
| 12 | 2 | 2 | 0 | 9 | return { scalar => [qw/longitude latitude/], | ||
| 13 | }; | ||||||
| 14 | } | ||||||
| 15 | |||||||
| 16 | 1; | ||||||
| 17 | |||||||
| 18 | __END__ |