++ed by:

1 non-PAUSE user.

Abe Timmerman

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:

code => $code_ref [Required]
package => $package [Optional]

DESCRIPTION

Dancer::RPCPlugin::DispatchItem->new(%arguments)

Arguments

Named:

code => $code_ref [Required]
package => $package [Optional]

$di->code

Getter for the code attibute.

$di->package

Getter for the package attribute

COPYRIGHT

(c) MMXVI - Abe Timmerman <abetim@cpan.org>