File Coverage

lib/WebService/Shippo/Parcel.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   34 use strict;
  7         12  
  7         164  
2 7     7   31 use warnings;
  7         13  
  7         170  
3 7     7   33 use MRO::Compat 'c3';
  7         16  
  7         199  
4              
5             package WebService::Shippo::Parcel;
6 7         1233 use base qw(
7             WebService::Shippo::Resource
8             WebService::Shippo::Create
9             WebService::Shippo::Fetch
10 7     7   33 );
  7         15  
11              
12             sub api_resource () { 'parcels' }
13              
14             sub collection_class () { 'WebService::Shippo::Parcels' }
15              
16             sub item_class () { __PACKAGE__ }
17              
18             BEGIN {
19 7     7   40 no warnings 'once';
  7         11  
  7         672  
20 7     7   191 *Shippo::Parcel:: = *WebService::Shippo::Parcel::;
21             }
22              
23             1;
24              
25             =pod
26              
27             =encoding utf8
28              
29             =head1 NAME
30              
31             WebService::Shippo::Parcel - Parcel class
32              
33             =head1 VERSION
34              
35             version 0.0.20
36              
37             =head1 DESCRIPTION
38              
39             Parcel objects are used for creating shipments, obtaining rates and printing
40             labels. Thus they are one of the fundamental building blocks of the Shippo
41             API. Parcel objects are created with their basic dimensions and weight.
42              
43             =head1 API DOCUMENTATION
44              
45             For more information about Parcels, consult the Shippo API documentation:
46              
47             =over 2
48              
49             =item * L
50              
51             =back
52              
53             =head1 REPOSITORY
54              
55             =over 2
56              
57             =item * L
58              
59             =item * L
60              
61             =back
62              
63             =head1 AUTHOR
64              
65             Iain Campbell
66              
67             =head1 COPYRIGHT AND LICENSE
68              
69             This software is copyright (c) 2015 by Iain Campbell.
70              
71             You may distribute this software under the terms of either the GNU General
72             Public License or the Artistic License, as specified in the Perl README
73             file.
74              
75              
76             =cut