OpenGbg/Service/AirQuality/GetMeasurements.pm

filter: Statementstmt 100% 24 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 100% 30 / 30 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« OpenGbg/Exceptions.pm ↑ Summary OpenGbg/Service/AirQuality/Measurements.pm »
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::AirQuality::GetMeasurements;
6  
7 # ABSTRACT: Get a collection of measurements
8 7 our $AUTHORITY = 'cpan:CSSON'; # AUTHORITY
9 7 our $VERSION = '0.1401';
10  
11 7 ▶use XML::Rabbit::Root;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 7 ▶use MooseX::AttributeShortcuts;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 7 ▶use Types::Standard qw/Str/;
Subroutine BEGIN: called CC=1 SCAR=0.0
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.AirQualityService';
22  
23 7 has_xpath_object measurements => '/x:Measurements' => 'OpenGbg::Service::AirQuality::Measurements';
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::AirQuality::GetMeasurements - Get a collection of measurements
38  
39 =head1 VERSION
40  
41 Version 0.1401, released 2016-05-05.
42  
43 =head1 NAME
44  
45 OpenGbg::Service::AirQuality::GetMeasurements
46  
47 =head1 SYNOPSIS
48  
49 my $service = OpenGbg->new->air_quality;
50 my $response = $service->get_measurements(start => '2014-10-15', end => '2014-10-25');
51  
52 print $response->measurements->get_by_index(5)->to_text;
53  
54 =head1 METHODS
55  
56 =head2 measurements
57  
58 Returns the list of measurements in the response in a L<OpenGbg::Service::AirQuality::Measurements> object.
59  
60 =head1 SOURCE
61  
62 L<https://github.com/Csson/p5-OpenGbg>
63  
64 =head1 HOMEPAGE
65  
66 L<https://metacpan.org/release/OpenGbg>
67  
68 =head1 AUTHOR
69  
70 Erik Carlsson <info@code301.com>
71  
72 =head1 COPYRIGHT AND LICENSE
73  
74 This software is copyright (c) 2016 by Erik Carlsson.
75  
76 This is free software; you can redistribute it and/or modify it under
77 the same terms as the Perl 5 programming language system itself.
78  
79 =cut
« OpenGbg/Exceptions.pm ↑ Summary OpenGbg/Service/AirQuality/Measurements.pm »