blib/lib/Asterisk/LCR/Importer/VoIPJet.pm untested

filter: Statementstmt 0.0% 0 / 23 Branchbran n/a Conditioncond 0.0% 0 / 20 MC/DCmcdc 0.0% 0 / 10 Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 58 CC 1 SCAR 6.9
CC
1
Cov
0%
new
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Asterisk::LCR::Importer::VoIPJet;
2 use base qw /Asterisk::LCR::Importer/;
3 use warnings;
4 use strict;
5  
6  
7 sub new
8 {
9 my $class = shift;
10 my $self = $class->SUPER::new (@_);
11 $self->{prefix_position} ||= 1;
12 $self->{prefix_locale} ||= 'us';
13 $self->{label_position} ||= 0;
14 $self->{rate_position} ||= 2;
15 $self->{first_increment_position} ||= 3;
16 $self->{increment} ||= 6;
17 $self->{connection_fee} ||= 0;
18 $self->{currency} ||= 'USD';
19 $self->{uri} ||= 'http://voipjet.com/ratescsv.php';
20 $self->{filter} ||= '^.*(?<!dialing),\d+,';
21 return $self;
22 }
23  
24  
25 1;
26  
27  
28 __END__