File Coverage

blib/lib/Business/UPS/Tracking/Shipment/Freight.pm
Criterion Covered Total %
statement 7 9 77.7
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 10 12 83.3


line stmt bran cond sub pod time code
1             # ============================================================================
2             package Business::UPS::Tracking::Shipment::Freight;
3             # ============================================================================
4 1     1   6624 use utf8;
  1         3  
  1         9  
5 1     1   67 use 5.0100;
  1         4  
  1         39  
6              
7 1     1   1670 use Moose;
  0            
  0            
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             warn('Business::UPS::Tracking::Shipment::Freight not yet implemented');
34             return;
35             }
36              
37             =head1 METHODS
38              
39             =head2 ShipmentType
40              
41             Returns 'Freight'
42              
43             =cut
44              
45             sub ShipmentType {
46             return 'Freight';
47             }
48              
49             =head2 meta
50              
51             Moose meta method
52              
53             =cut
54              
55             __PACKAGE__->meta->make_immutable;
56             no Moose;
57             1;