Group
Extension

Matches 2

Sque ( W/WW/WWOLF/Sque-0.010.tar.gz, WWOLF, 2014; MetaCPAN )
Sque/lib/Sque/Encoder.pm ( view source; MetaCPAN )
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 } )
Sque ( W/WW/WWOLF/Sque-0.010.tar.gz, WWOLF, 2014; MetaCPAN )
Sque/lib/Sque/Job.pm ( view source; MetaCPAN )
 '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

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.