NAME

Opsview::REST::QueryBuilder - Role to transform attributes into a valid method URL

SYNOPSIS

use Moose;

has base => ( default => '/downtime' );

with 'Opsview::REST::QueryBuilder'

DESCRIPTION

This is a role to help adding functionalities to the Opsview::REST. It only requires the consumer to have a "base", and it will generate a valid method URL when the consumer object is instantiated.

It offers the "as_string" method, which is handled by URI.

AUTHOR

  • Miquel Ruiz <mruiz@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2012 by Miquel Ruiz.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.