OpenGbg/Service/TrafficCamera/GetTrafficCameras.pm

filter: Statementstmt 100% 21 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 26 / 26 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« OpenGbg/Service/TrafficCamera/CameraDevice.pm ↑ Summary
1 7 ▶use 5.10.0;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 7 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 7 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 package OpenGbg::Service::TrafficCamera::GetTrafficCameras;
6  
7 # ABSTRACT: Get a list of traffic cameras
8 7 our $AUTHORITY = 'cpan:CSSON'; # AUTHORITY
9 7 our $VERSION = '0.1402';
10  
11 7 ▶use XML::Rabbit::Root;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 7 ▶use Types::Standard qw/Str/;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14  
15 7 has xml => (
16 is => 'ro',
17 isa => Str,
18 required => 1,
19 );
20  
21 7 add_xpath_namespace 'x' => 'TK.DevServer.Services.TrafficCameras';
22  
23 7 has_xpath_object camera_devices => '/x:CameraDevices' => 'OpenGbg::Service::TrafficCamera::CameraDevices';
24  
25 7 finalize_class();
26  
27 7 1;
28  
29 __END__
30  
31 =pod
32  
33 =encoding utf-8
34  
35 =head1 NAME
36  
37 OpenGbg::Service::TrafficCamera::GetTrafficCameras - Get a list of traffic cameras
38  
39 =head1 VERSION
40  
41 Version 0.1402, released 2016-08-12.
42  
43 =head1 SYNOPSIS
44  
45 my $traffic_camera_service = OpenGbg->new->traffic_camera;
46 my $get_traffic_cameras = $traffic_camera_service->get_traffic_cameras;
47  
48 print $get_traffic_cameras->camera_devices->get_by_index(0)->to_text;
49  
50 =head1 METHODS
51  
52 =head2 camera_devices
53  
54 Returns the list of traffic cameras in the response in a L<OpenGbg::Service::TrafficCamera::CameraDevices> object.
55  
56 =head1 SOURCE
57  
58 L<https://github.com/Csson/p5-OpenGbg>
59  
60 =head1 HOMEPAGE
61  
62 L<https://metacpan.org/release/OpenGbg>
63  
64 =head1 AUTHOR
65  
66 Erik Carlsson <info@code301.com>
67  
68 =head1 COPYRIGHT AND LICENSE
69  
70 This software is copyright (c) 2016 by Erik Carlsson.
71  
72 This is free software; you can redistribute it and/or modify it under
73 the same terms as the Perl 5 programming language system itself.
74  
75 =cut
« OpenGbg/Service/TrafficCamera/CameraDevice.pm ↑ Summary