| 1 | |||
| 2 | package Email::Blaster::ConfigNode::Throttled; | ||
| 3 | |||
| 4 | use strict; | ||
| 5 | use warnings 'all'; | ||
| 6 | use base 'Email::Blaster::ConfigNode'; | ||
| 7 | |||
| 8 | |||
| 9 | #============================================================================== | ||
| 10 | sub new | ||
| 11 | { | ||
| 12 | my ($class, $ref) = @_; | ||
| 13 | |||
| 14 | my $s = $class->SUPER::new( $ref ); | ||
| 15 | |||
| 16 | $s->{throttle} ||= [ ]; | ||
| 17 | map { $_ = $class->SUPER::new( $_ ) } grep { ref($_) && ref($_) eq 'HASH' } @{[ $s->{throttle} ]}; | ||
| 18 | |||
| 19 | return $s; | ||
| 20 | }# end new() | ||
| 21 | |||
| 22 | 1;# return true: | ||
| 23 |