NAME
Dancer::RPCPlugin::DispatchItem - Small object to handle dispatch-table items
SYNOPSIS
use Dancer::RPCPlugin::DispatchItem;
use Dancer::Plugin::RPC::JSONRPC;
jsonrpc '/json' => {
    publish => sub {
        return {
            'system.ping' => dispatch_item(
                code    => MyProject::Module1->can('sub1'),
                package => 'Myproject::Module1',
            ),
        };
    },
};
EXPORT
dispatch_item(%arguments)
Arguments
Named:
DESCRIPTION
Dancer::RPCPlugin::DispatchItem->new(%arguments)
Arguments
Named:
$di->code
Getter for the code attibute.
$di->package
Getter for the package attribute
COPYRIGHT
(c) MMXVI - Abe Timmerman <abetim@cpan.org>