Response/Bounds.pm

filter: Statementstmt 100% 9 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 11 / 11 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Response.pm ↑ Summary Response/Coordinates.pm »
1 package Google::Directions::Response::Bounds;
2 3 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 3 ▶use Google::Directions::Types qw/:all/;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 =head1 NAME
6  
7 Google::Directions::Response::Bounds - The bounds for a route
8  
9 =head1 SYNOPSIS
10  
11 my $first_route = shift( @{ $response->routes } );
12 my $bounds = $first_route->bounds;
13 ...
14  
15 =cut
16  
17 =head1 ATTRIBUTES
18  
19 Stores the northeast and southwest corners of the bounding box within which the route
20 happens
21  
22 =over 4
23  
24 =item I<northeast> L<Google::Directions::Response::Coordinates>
25  
26 =item I<southwest> L<Google::Directions::Response::Coordinates>
27  
28 =back
29  
30 =cut
31  
32 3 has 'northeast' => ( is => 'ro', isa => CoordinatesClass,
33 required => 1, coerce => 1 );
34 3 has 'southwest' => ( is => 'ro', isa => CoordinatesClass,
35 required => 1, coerce => 1 );
36  
37 3 1;
38  
39 =head1 AUTHOR
40  
41 Robin Clarke, C<< <perl at robinclarke.net> >>
42  
43 =head1 LICENSE AND COPYRIGHT
44  
45 Copyright 2012 Robin Clarke.
46  
47 This program is free software; you can redistribute it and/or modify it
48 under the terms of either: the GNU General Public License as published
49 by the Free Software Foundation; or the Artistic License.
50  
51 See http://dev.perl.org/licenses/ for more information.
52  
53 =cut
54  
« Response.pm ↑ Summary Response/Coordinates.pm »