AnyMongo
view release on metacpan or search on metacpan
lib/AnyMongo/BSON/Code.pm view on Meta::CPAN
package AnyMongo::BSON::Code;
BEGIN {
$AnyMongo::BSON::Code::VERSION = '0.03';
}
# ABSTRACT: BSON type,it's used to represent JavaScript code and, optionally, scope.
use strict;
use warnings;
use namespace::autoclean;
use Any::Moose;
has code => (
is => 'ro',
isa => 'Str',
required => 1,
);
has scope => (
is => 'ro',
isa => 'HashRef',
required => 0,
);
# __PACKAGE__->meta->make_immutable (inline_destructor => 0);
__PACKAGE__->meta->make_immutable;
1;
=pod
=head1 NAME
AnyMongo::BSON::Code - BSON type,it's used to represent JavaScript code and, optionally, scope.
=head1 VERSION
version 0.03
=head1 SYNOPSIS
=head1 DESCRIPTION
=head1 ATTRIBUTES
=head2 code
A string of JavaScript code.
=head2 scope
An optional hash of variables to pass as the scope.
=head1 NAME
AnyMongo::Code
=head1 AUTHOR
=head1 COPYRIGHT
=head1 AUTHORS
=over 4
=item *
Pan Fan(nightsailer) <nightsailer at gmail.com>
( run in 1.471 second using v1.01-cache-2.11-cpan-39bf76dae61 )