File Coverage

blib/lib/XPanel.pm
Criterion Covered Total %
statement 46 46 100.0
branch n/a
condition 1 3 33.3
subroutine 5 5 100.0
pod 0 1 0.0
total 52 55 94.5


line stmt bran cond sub pod time code
1             package XPanel;
2              
3 2     2   1941 use strict;
  2         4  
  2         81  
4 2     2   11 use warnings;
  2         5  
  2         76  
5 2     2   47 use vars qw($VERSION);
  2         5  
  2         1232  
6              
7             $VERSION = '0.0.1';
8              
9              
10             sub new {
11 1     1 0 771 my $this = shift;
12 1   33     25 my $class = ref($this) || $this;
13 1         2 my $self = {};
14 1         3 bless $self, $class;
15 1         3 $self->_initialize();
16 1         3 return $self;
17             }
18              
19             sub _initialize {
20 1     1   2 my $self = shift;
21 1         7 $self->{'customer_id'} = 0;
22 1         2 $self->{'login_name'} = '';
23 1         2 $self->{'password'} = '';
24 1         3 $self->{'status'} = 'notValidated';
25 1         2 $self->{'password_hint'} = '';
26 1         2 $self->{'call_in_pin'} = 0;
27 1         2 $self->{'first_name'} = '';
28 1         3 $self->{'middle_name'} = '';
29 1         3 $self->{'last_name'} = '';
30 1         2 $self->{'organization'} = '';
31 1         1 $self->{'address1'} = '';
32 1         2 $self->{'address2'} = '';
33 1         2 $self->{'city'} = '';
34 1         1 $self->{'state'} = '';
35 1         2 $self->{'postal_code'} = '';
36 1         5 $self->{'country'} = '';
37 1         2 $self->{'work_phone'} = 0;
38 1         3 $self->{'home_phone'} = '';
39 1         2 $self->{'mobile_phone'} = '';
40 1         2 $self->{'fax'} = '';
41 1         2 $self->{'email'} = '';
42 1         5 $self->{'account_type'} = 0;
43 1         3 $self->{'gender'} = '';
44 1         3 $self->{'birthday'} = '';
45 1         3 $self->{'language'} = 'en-US';
46 1         1 $self->{'subscribe'} = 0;
47 1         2 $self->{'last_ip_address'} = '';
48 1         2 $self->{'comments'} = '';
49 1         2 $self->{'creation_date'} = '0000-00-00 00:00:00';
50 1         3 $self->{'updated_date'} = '0000-00-00 00:00:00';
51             }
52              
53             1;
54             __END__