File Coverage

lib/WebService/Shippo/Shipments.pm
Criterion Covered Total %
statement 16 16 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod n/a
total 22 22 100.0


line stmt bran cond sub pod time code
1 7     7   39 use strict;
  7         18  
  7         197  
2 7     7   40 use warnings;
  7         15  
  7         196  
3 7     7   41 use MRO::Compat 'c3';
  7         14  
  7         349  
4              
5             package WebService::Shippo::Shipments;
6             require WebService::Shippo::Shipment;
7 7         1321 use base qw(
8             WebService::Shippo::Collection
9             WebService::Shippo::Create
10             WebService::Shippo::Fetch
11 7     7   38 );
  7         13  
12              
13             sub item_class () { 'WebService::Shippo::Shipment' }
14              
15             sub collection_class () { __PACKAGE__ }
16              
17             BEGIN {
18 7     7   42 no warnings 'once';
  7         15  
  7         251  
19 7     7   208 *Shippo::Shipments:: = *WebService::Shippo::Shipments::;
20             }
21              
22             1;
23              
24             =pod
25              
26             =encoding utf8
27              
28             =head1 NAME
29              
30             WebService::Shippo::Shipment - Shipment collection class
31              
32             =head1 VERSION
33              
34             version 0.0.20
35              
36             =head1 DESCRIPTION
37              
38             At the heart of the Shippo API is the Shipment object. It is made up
39             of sender and recipient addresses, details of the parcel to be shipped
40             and, for international shipments, the customs declaration. Once created,
41             a Shipment object can be used to retrieve shipping rates and purchase a
42             shipping label.
43              
44             =head1 API DOCUMENTATION
45              
46             For more information about Shipments, consult the Shippo API documentation:
47              
48             =over 2
49              
50             =item * L
51              
52             =back
53              
54             =head1 REPOSITORY
55              
56             =over 2
57              
58             =item * L
59              
60             =item * L
61              
62             =back
63              
64             =head1 AUTHOR
65              
66             Iain Campbell
67              
68             =head1 COPYRIGHT AND LICENSE
69              
70             This software is copyright (c) 2015 by Iain Campbell.
71              
72             You may distribute this software under the terms of either the GNU General
73             Public License or the Artistic License, as specified in the Perl README
74             file.
75              
76              
77             =cut