se 'Role';
use JSON;
# ABSTRACT: Any::Moose role for encoding Sque structures
#
# =attr encoder
#
# JSON encoder by default.
#
# =cut
has encoder => ( is => 'ro', default => sub { JSON->new->utf8 } )
'rw', isa => 'ArrayRef', default => sub {[]} );
coerce 'HashRef'
=> from 'Str'
=> via { JSON->new->utf8->decode($_) };
has payload => (
is => 'rw',
isa => 'HashRef',
coerce => 1
l be coerced using JSON decoder.
This is read-only.
=head2 frame
Raw stomp frame representing the job.
This is read-only.
=head1 METHODS
=head2 encode
String representation(JSON) to be used on th