blib/lib/Buzznet/Profile.pm

filter: Statementstmt 16.5% 17 / 103 Branchbran 0.0% 0 / 26 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 9.3% 3 / 32 Podpod 96.5% 28 / 29 totaltotal 25.2% 48 / 190 CC 14 SCAR 14.5
CC
14
Cov
13%
password
6.0
keyword
6.0
fname
6.0
CRAP 4.2
« blib/lib/Buzznet/API.pm ↑ Summary blib/lib/Buzznet/Entry.pm »
1 package Buzznet::Profile;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 require Exporter;
7 1 ▶use AutoLoader qw(AUTOLOAD);
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 our @ISA = qw(Exporter);
10  
11 # Items to export into callers namespace by default. Note: do not export
12 # names by default without a very good reason. Use EXPORT_OK instead.
13 # Do not simply export all your public functions/methods/constants.
14  
15 # This allows declaration use Buzznet::Profile ':all';
16 # If you do not need this, moving things directly into @EXPORT or @EXPORT_OK
17 # will save memory.
18 1 our %EXPORT_TAGS = ( 'all' => [ qw(
19
20 ) ] );
21  
22 1 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
23  
24 1 our @EXPORT = qw(
25
26 );
27  
28 1 our $VERSION = '0.01';
29  
30 #require XSLoader;
31 #XSLoader::load('Buzznet::Profile', $VERSION);
32  
33 # Preloaded methods go here.
34  
35 sub new
36 0 ▶{
Subroutine new: not called CC=1 SCAR=6.9
Pod undocumented
37 0 my ($package,@refs) = @_;
38 0 my $inst = {@refs};
39 0 $inst->{"error"} = undef;
40 0 return bless($inst,$package);
41 }
42  
43 sub password
44 0 ▶{
Subroutine password: not called CC=2 SCAR=17.9
Pod documented
45 0 my $self = shift;
46 0 my $password = shift;
47  
48 0 ▶ $self->{"password"} = $password if($password);
Branch: 1 branch
BranchTrueFalseTotal
if $password 0 0 0
49 0 return $self->{"password"};
50 }
51  
52 sub keyword
53 0 ▶{
Subroutine keyword: not called CC=2 SCAR=17.9
Pod documented
54 0 my $self = shift;
55 0 my $keyword = shift;
56  
57 0 ▶ $self->{"keyword"} = $keyword if($keyword);
Branch: 1 branch
BranchTrueFalseTotal
if $keyword 0 0 0
58 0 return $self->{"keyword"};
59 }
60  
61 sub fname
62 0 ▶{
Subroutine fname: not called CC=2 SCAR=17.9
Pod documented
63 0 my $self = shift;
64 0 my $fname = shift;
65  
66 0 ▶ $self->{"fname"} = $fname if($fname);
Branch: 1 branch
BranchTrueFalseTotal
if $fname 0 0 0
67 0 return $self->{"fname"};
68 }
69  
70 sub lname
71 0 ▶{
Subroutine lname: not called CC=2 SCAR=17.9
Pod documented
72 0 my $self = shift;
73 0 my $lname = shift;
74  
75 0 ▶ $self->{"lname"} = $lname if($lname);
Branch: 1 branch
BranchTrueFalseTotal
if $lname 0 0 0
76 0 return $self->{"lname"};
77 }
78  
79 sub email
80 0 ▶{
Subroutine email: not called CC=2 SCAR=17.9
Pod documented
81 0 my $self = shift;
82 0 my $email = shift;
83  
84 0 ▶ $self->{"email"} = $email if($email);
Branch: 1 branch
BranchTrueFalseTotal
if $email 0 0 0
85 0 return $self->{"email"};
86 }
87  
88 sub address
89 0 ▶{
Subroutine address: not called CC=2 SCAR=17.9
Pod documented
90 0 my $self = shift;
91 0 my $address = shift;
92  
93 0 ▶ $self->{"address"} = $address if($address);
Branch: 1 branch
BranchTrueFalseTotal
if $address 0 0 0
94 0 return $self->{"address"};
95 }
96  
97 sub city
98 0 ▶{
Subroutine city: not called CC=2 SCAR=17.9
Pod documented
99 0 my $self = shift;
100 0 my $city = shift;
101  
102 0 ▶ $self->{"city"} = $city if($city);
Branch: 1 branch
BranchTrueFalseTotal
if $city 0 0 0
103 0 return $self->{"city"};
104 }
105  
106 sub state
107 0 ▶{
Subroutine state: not called CC=2 SCAR=17.9
Pod documented
108 0 my $self = shift;
109 0 my $state = shift;
110  
111 0 ▶ $self->{"state"} = $state if($state);
Branch: 1 branch
BranchTrueFalseTotal
if $state 0 0 0
112 0 return $self->{"state"};
113 }
114  
115 sub zip
116 0 ▶{
Subroutine zip: not called CC=2 SCAR=17.9
Pod documented
117 0 my $self = shift;
118 0 my $zip = shift;
119  
120 0 ▶ $self->{"zip"} = $zip if($zip);
Branch: 1 branch
BranchTrueFalseTotal
if $zip 0 0 0
121 0 return $self->{"zip"};
122 }
123  
124 sub country
125 0 ▶{
Subroutine country: not called CC=2 SCAR=17.9
Pod documented
126 0 my $self = shift;
127 0 my $country = shift;
128  
129 0 ▶ $self->{"country"} = $country if($country);
Branch: 1 branch
BranchTrueFalseTotal
if $country 0 0 0
130 0 return $self->{"country"};
131 }
132  
133 sub dob
134 0 ▶{
Subroutine dob: not called CC=2 SCAR=17.9
Pod documented
135 0 my $self = shift;
136 0 my $dob = shift;
137  
138 0 ▶ $self->{"dob"} = $dob if($dob);
Branch: 1 branch
BranchTrueFalseTotal
if $dob 0 0 0
139 0 return $self->{"dob"};
140 }
141  
142 sub gender
143 0 ▶{
Subroutine gender: not called CC=2 SCAR=17.9
Pod documented
144 0 my $self = shift;
145 0 my $gender = shift;
146  
147 0 ▶ $self->{"gender"} = $gender if($gender);
Branch: 1 branch
BranchTrueFalseTotal
if $gender 0 0 0
148 0 return $self->{"gender"};
149 }
150  
151 sub status
152 0 ▶{
Subroutine status: not called CC=2 SCAR=17.9
Pod documented
153 0 my $self = shift;
154 0 my $status = shift;
155  
156 0 ▶ $self->{"status"} = $status if($status);
Branch: 1 branch
BranchTrueFalseTotal
if $status 0 0 0
157 0 return $self->{"status"};
158 }
159  
160 sub username
161 0 ▶{
Subroutine username: not called CC=1 SCAR=6.9
Pod documented
162 0 my $self = shift;
163 0 return $self->{"user_name"};
164 }
165  
166 sub signupdate
167 0 ▶{
Subroutine signupdate: not called CC=1 SCAR=6.9
Pod documented
168 0 my $self = shift;
169 0 return $self->{"signupdate"};
170 }
171  
172 sub lastupdated
173 0 ▶{
Subroutine lastupdated: not called CC=1 SCAR=6.9
Pod documented
174 0 my $self = shift;
175 0 return $self->{"lastupdated"};
176 }
177  
178 sub title
179 0 ▶{
Subroutine title: not called CC=1 SCAR=6.9
Pod documented
180 0 my $self = shift;
181 0 return $self->{"gallery_title"};
182 }
183  
184 sub comments
185 0 ▶{
Subroutine comments: not called CC=1 SCAR=6.9
Pod documented
186 0 my $self = shift;
187 0 return $self->{"comments"};
188 }
189  
190 sub commentsOff
191 0 ▶{
Subroutine commentsOff: not called CC=1 SCAR=6.9
Pod documented
192 0 my $self = shift;
193 0 return $self->{"comments_off"};
194 }
195  
196 sub anonComments
197 0 ▶{
Subroutine anonComments: not called CC=1 SCAR=6.9
Pod documented
198 0 my $self = shift;
199 0 return $self->{"anon_comments"};
200 }
201  
202 sub messagesOff
203 0 ▶{
Subroutine messagesOff: not called CC=1 SCAR=6.9
Pod documented
204 0 my $self = shift;
205 0 return $self->{"messages_off"};
206 }
207  
208 sub blog
209 0 ▶{
Subroutine blog: not called CC=1 SCAR=6.9
Pod documented
210 0 my $self = shift;
211 0 return $self->{"blog"};
212 }
213  
214 sub description
215 0 ▶{
Subroutine description: not called CC=1 SCAR=6.9
Pod documented
216 0 my $self = shift;
217 0 return $self->{"description"};
218 }
219  
220 sub totalBuddies
221 0 ▶{
Subroutine totalBuddies: not called CC=1 SCAR=6.9
Pod documented
222 0 my $self = shift;
223 0 return $self->{"totalbuddies"};
224 }
225  
226 sub thumbURL
227 0 ▶{
Subroutine thumbURL: not called CC=1 SCAR=6.9
Pod documented
228 0 my $self = shift;
229 0 return $self->{"img_thumb"};
230 }
231  
232 sub featURL
233 0 ▶{
Subroutine featURL: not called CC=1 SCAR=6.9
Pod documented
234 0 my $self = shift;
235 0 return $self->{"img_feat"};
236 }
237  
238 sub syndURL
239 0 ▶{
Subroutine syndURL: not called CC=1 SCAR=6.9
Pod documented
240 0 my $self = shift;
241 0 return $self->{"img_synd"};
242 }
243  
244 sub galleryURL
245 0 ▶{
Subroutine galleryURL: not called CC=1 SCAR=6.9
Pod documented
246 0 my $self = shift;
247 0 return $self->{"img_gallery"};
248 }
249  
250 # Autoload methods go after =cut, and are processed by the autosplit program.
251  
252 1 1;
253 __END__
« blib/lib/Buzznet/API.pm ↑ Summary blib/lib/Buzznet/Entry.pm »