NAME
Pinto::Meta::Attribute::Trait::Postable - Trait for marking attributes as something to POST
VERSION
version 0.037
ATTRIBUTES
post_as => NAME
Specify an alternative name for the attribute when posting it. If not specified, the posted attribute name will be the same as the object attribute name.
post_via => CODEREF
Specify an alternative subroutine for transforming the attribute value before posting it. If not specified, the posted value will be the same as the attribute value.
METHODS
as_post_data()
Returns an array reference containing the names => values of each Postable
attribute of this object. This array reference is suitable for passing to the POST
function in HTTP::Request::Common or the post
method of LWP::UserAgent.
AUTHOR
Jeffrey Ryan Thalhammer <jeff@imaginative-software.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Imaginative Software Systems.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.