NAME
Amazon::MWS::Enumeration
DESCRIPTION
Base class for enumeration values that stringify to themselves, used to represent the various enum values defined in the MWS api. Using these instead of just raw strings buys you compile-time checking to make sure you didn't misspell the rather long all-caps names.
SYNOPSIS
use Amazon::MWS::Enumeration::FeedType qw(:all);
_POST_PRODUCT_DATA_ # no warnings or strict violations, checked for typos!
METHODS
define ( @constants )
For each string passed, installs a class method / exportable sub into the calling subclass by that name. The value returned by that sub will be an object blessed into the calling package which stringifies into the constant itself, e.g. $class->CONSTANT eq 'CONSTANT';
as_string ()
The stringifier for these enums - simply dereferences the blessed scalar.
AUTHOR
Paul Driver frodwith@cpan.org
LICENCE AND COPYRIGHT
Copyright (c) 2009, Plain Black Corporation http://plainblack.com. All rights reserved
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.