Parcel::Track::Role::Base - Parcel::Track base role
version 0.005
package Parcel::Track::KR::MyDriver; use Moo; with 'Parcel::Track::Role::Base'; sub uri { ... } sub track { ... }
The Parcel::Track::Role::Base class provides an abstract base class for all Parcel::Track driver classes.
Parcel::Track::Role::Base
At this time it does not provide any implementation code for drivers (although this may change in the future). It does serve as something you should sub-class your driver from to identify it as a Parcel::Track driver.
Please note that if your driver class not not return true for $driver-does('Parcel::Track::Role::Base')> then the Parcel::Track constructor will refuse to use your class as a driver.
$driver-
Returns tracking number.
Returns official link to track parcel.
Returns HASHREF which contains information of tracking the parcel. HASHREF MUST contain following key and value pairs.
HASHREF
from: SCALAR.
from
SCALAR
to: SCALAR.
to
result: SCALAR.
result
htmls: ARRAYREF.
htmls
ARRAYREF
descs: ARRAYREF.
descs
김도형 - Keedi Kim <keedi@cpan.org>
This software is copyright (c) 2015 by Keedi Kim.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Parcel::Track, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Parcel::Track
CPAN shell
perl -MCPAN -e shell install Parcel::Track
For more information on module installation, please visit the detailed CPAN module installation guide.