From 3c5cccf1bf74f2e60482fe62cfbcbe06722da1f5 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Wed, 11 Jul 2012 00:08:15 -0700 Subject: initial commit --- BatchPayment/Debug.pm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 BatchPayment/Debug.pm (limited to 'BatchPayment/Debug.pm') diff --git a/BatchPayment/Debug.pm b/BatchPayment/Debug.pm new file mode 100644 index 0000000..71a9e6d --- /dev/null +++ b/BatchPayment/Debug.pm @@ -0,0 +1,20 @@ +package Business::BatchPayment::Debug; + +=head1 DESCRIPTION + +The 'debug' attribute. All Business::BatchPayment classes should support +this. $Business::BatchPayment::DEBUG can be set to turn on debugging +globally. + +=cut + +use Moose::Role; + +has 'debug' => ( + is => 'rw', + isa => 'Int', + default => sub { $Business::BatchPayment::DEBUG || 0 }, + lazy => 1, +); + +1; -- cgit v1.2.1