NAME
Bot::Backbone::SendPolicy::Aggregate - Pull several send policies together
VERSION
version 0.142220
DESCRIPTION
You probably don't need to worry about this policy directly. Simply by defining a policy using the send_policy
helper loaded by Bot::Backbone, you will end up using this to mix them together.
Basically, this just provides tools for configuring multiple policies and makes sure that the most restrictive policies win.
ATTRIBUTES
config
This is the send policy configuration to use.
policies
This is the list of Bot::Backbone::SendPolicy objects to apply. These are built automatically based upon "config".
METHODS
allow_send
Applies all the "policies" to the message and returns the most restrictive send policy results.
This does perform short circuiting
AUTHOR
Andrew Sterling Hanenkamp <hanenkamp@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2014 by Qubling Software LLC.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.