NAME
Parcel::Track::Role::Base - Parcel::Track base role
VERSION
version 0.005
SYNOPSIS
package Parcel::Track::KR::MyDriver;
use Moo;
with 'Parcel::Track::Role::Base';
sub uri {
...
}
sub track {
...
}
DESCRIPTION
The Parcel::Track::Role::Base
class provides an abstract base class for all Parcel::Track driver classes.
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.
ATTRIBUTES
id
Returns tracking number.
METHODS
uri
Returns official link to track parcel.
track
Returns HASHREF
which contains information of tracking the parcel. HASHREF
MUST contain following key and value pairs.
from
:SCALAR
.to
:SCALAR
.result
:SCALAR
.htmls
:ARRAYREF
.descs
:ARRAYREF
.
AUTHOR
김도형 - Keedi Kim <keedi@cpan.org>
COPYRIGHT AND LICENSE
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.