File Coverage

lib/WebService/OpenSky/Response/Flights.pm
Criterion Covered Total %
statement 17 17 100.0
branch 4 8 50.0
condition n/a
subroutine 4 4 100.0
pod n/a
total 25 29 86.2


line stmt bran cond sub pod time code
1             package WebService::OpenSky::Response::Flights;
2              
3             # ABSTRACT: A class representing a flights response from the OpenSky Network API
4              
5 8     8   67 use WebService::OpenSky::Moose;
  8         16  
  8         92  
6 8     8   140315 use WebService::OpenSky::Core::Flight;
  8         239525  
  8         1806  
7             extends 'WebService::OpenSky::Response';
8              
9             our $VERSION = '0.4';
10              
11 8 50   8   28 method _create_response_objects() {
  8 50       25  
  8         16  
  8         12  
12 8         34 return [ map { WebService::OpenSky::Core::Flight->new($_) } $self->raw_response->@* ];
  7         6003  
13             }
14              
15 4 50   4   17 method _empty_response() {
  4 50       15  
  4         9  
  4         8  
16 4         16 return [];
17             }
18              
19             __END__
20              
21             =pod
22              
23             =encoding UTF-8
24              
25             =head1 NAME
26              
27             WebService::OpenSky::Response::Flights - A class representing a flights response from the OpenSky Network API
28              
29             =head1 VERSION
30              
31             version 0.4
32              
33             =head1 DESCRIPTION
34              
35             This class inherits from L<WebService::OpenSky::Response>. Please see that
36             module for the available methods. Individual responses are from the
37             L<WebService::OpenSky::Core::Flight> class.
38              
39             =head1 AUTHOR
40              
41             Curtis "Ovid" Poe <curtis.poe@gmail.com>
42              
43             =head1 COPYRIGHT AND LICENSE
44              
45             This software is Copyright (c) 2023 by Curtis "Ovid" Poe.
46              
47             This is free software, licensed under:
48              
49             The Artistic License 2.0 (GPL Compatible)
50              
51             =cut