Brian Duggan > Clustericious-Client > Clustericious::Client::Meta::Route

Download:
Clustericious-Client-0.77.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source   Latest Release: Clustericious-Client-0.85

NAME ^

Clustericious::Client::Meta::Route - metadata about a route

DESCRIPTION ^

Keep track of metadata about a particular route. This includes documentation and attributes.

SYNOPSIS ^

    my $meta = Clustericious::Client::Meta::Route->new(
            client_class => 'Yars::Client',
            route_name => 'bucket_map,
        );
    $meta->get('auto_failover');

set

Set a route attribute.

  $meta->set(auto_failover => 1);

get

Get a route attribute.

 $meta->get('auto_failover');

doc

Get documentation for this route.

set_doc

Set the documentation for a route.

client_class

The class of the client associated with this object.

route_name

The name of the route to which this object refers.

process_args

Process an array of arguments sent to this route.

This will look at the the route_arg specification that has been set up for this route, and use it to turn an array of parameters into hash for use by the method.

If any of the args have a 'preprocess' (list, yamldoc, datetime), then those transformations are applied.

If any required parameters are missing, an exception is thrown.

If any parameters have an 'alt' entry or are abbreviated, the full name is used instead.

Returns a hash of arguments, dies on failure.

See route_arg for a complete description of how arguments will be processed. Note that modifies_url entries are not processed here; that occurs just before the request is made.

SEE ALSO ^

Clustericious::Client::Meta

syntax highlighting: