File Coverage

blib/lib/Business/UPS/Tracking/Shipment/Freight.pm
Criterion Covered Total %
statement 11 14 78.5
branch n/a
condition n/a
subroutine 4 6 66.6
pod 1 2 50.0
total 16 22 72.7


line stmt bran cond sub pod time code
1             # ============================================================================
2             package Business::UPS::Tracking::Shipment::Freight;
3             # ============================================================================
4 1     1   5 use utf8;
  1         1  
  1         5  
5 1     1   35 use 5.0100;
  1         2  
6              
7 1     1   3 use Moose;
  1         1  
  1         6  
8             extends 'Business::UPS::Tracking::Shipment';
9              
10             =encoding utf8
11              
12             =head1 NAME
13              
14             Business::UPS::Tracking::Shipment::Freight - A freight shipment
15              
16             =head1 DESCRIPTION
17              
18             This class has not yet been implemented (patches welcome). If you need to
19             work with freight shipments you still can access the xml tree via
20             C<$shipment-E<gt>xml>.
21              
22             This class represents an freight shipment and extends
23             L<Business::UPS::Tracking::Shipment>. Usually it is created
24             automatically from a L<Business::UPS::Tracking::Response> object.
25              
26             =head1 ACCESSORS
27              
28             Same as L<Business::UPS::Tracking::Shipment>
29              
30             =cut
31              
32             sub BUILD {
33 0     0 0   warn('Business::UPS::Tracking::Shipment::Freight not yet implemented');
34 0           return;
35             }
36              
37             =head1 METHODS
38              
39             =head2 ShipmentType
40              
41             Returns 'Freight'
42              
43             =cut
44              
45             sub ShipmentType {
46 0     0 1   return 'Freight';
47             }
48              
49             =head2 meta
50              
51             Moose meta method
52              
53             =cut
54              
55             __PACKAGE__->meta->make_immutable;
56 1     1   4397 no Moose;
  1         1  
  1         5  
57             1;