MooseX::RemoteHelper::Meta::Trait::Attribute - role applied to meta attribute
version 0.001014
the name of the attribute key on the remote host. if no remote_name is provided it should be assumed that the attribute is not used on the remote but is instead local only. MooseX::RemoteHelper::CompositeSerialization will not serialize an attribute that doesn't have a remote_name
remote_name
has perlish => ( isa => 'Str', remote_name => 'MyReallyJavaIshKey', is => 'ro', );
a code ref for converting the real value to what the remote host expects. it requires that you pass the attribute and the instance. e.g.
has foo_bar => ( isa => 'Bool', remote_name => 'FooBar', serializer => sub { my ( $attr, $instance ) = @_; return $attr->get_value( $insance ) ? 'T' : 'F'; }, );
returns the attributed value by using the serializer.
Please report any bugs or feature requests on the bugtracker website https://github.com/xenoterracide/moosex-remotehelper/issues
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
Please see those modules/websites for more information related to this module.
MooseX::RemoteHelper
Caleb Cushing <xenoterracide@gmail.com>
This software is Copyright (c) 2013 by Caleb Cushing.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
To install MooseX::RemoteHelper, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MooseX::RemoteHelper
CPAN shell
perl -MCPAN -e shell install MooseX::RemoteHelper
For more information on module installation, please visit the detailed CPAN module installation guide.