blib/lib/Buzznet/Entry.pm

filter: Statementstmt 29.8% 17 / 57 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 15.0% 3 / 20 Podpod 94.1% 16 / 17 totaltotal 36.7% 36 / 98 CC 3 SCAR 9.5
CC
3
Cov
28%
time
6.0
thumbURL
6.0
new
2.0
CRAP 2.6
« blib/lib/Buzznet/Profile.pm ↑ Summary blib/lib/Buzznet/Buzzword.pm »
1 package Buzznet::Entry;
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::Entry ':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::Entry', $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 categoryID
44 0 ▶{
Subroutine categoryID: not called CC=1 SCAR=6.9
Pod documented
45 0 my $self = shift;
46 0 return $self->{"category_id"};
47 }
48  
49 sub time
50 0 ▶{
Subroutine time: not called CC=2 SCAR=17.9
Pod documented
51 0 my $self = shift;
52
53 0 ▶ if(!$self->{"time"})
Branch: 1 branch
BranchTrueFalseTotal
unless ($self->{"time"}) 0 0 0
54 {
55 0 return $self->{"utime"};
56 }
57  
58 0 return $self->{"time"};
59 }
60  
61 sub caption
62 0 ▶{
Subroutine caption: not called CC=1 SCAR=6.9
Pod documented
63 0 my $self = shift;
64 0 return $self->{"caption"};
65 }
66  
67 sub body
68 0 ▶{
Subroutine body: not called CC=1 SCAR=6.9
Pod documented
69 0 my $self = shift;
70 0 return $self->{"body"};
71 }
72  
73 sub type
74 0 ▶{
Subroutine type: not called CC=1 SCAR=6.9
Pod documented
75 0 my $self = shift;
76 0 return $self->{"mode"};
77 }
78  
79 sub name
80 0 ▶{
Subroutine name: not called CC=1 SCAR=6.9
Pod documented
81 0 my $self = shift;
82 0 return $self->{"name"};
83 }
84  
85 sub entryId
86 0 ▶{
Subroutine entryId: not called CC=1 SCAR=6.9
Pod documented
87 0 my $self = shift;
88 0 return $self->{"entry_id"};
89 }
90  
91 sub userId
92 0 ▶{
Subroutine userId: not called CC=1 SCAR=6.9
Pod documented
93 0 my $self = shift;
94 0 return $self->{"user_id"};
95 }
96  
97 sub username
98 0 ▶{
Subroutine username: not called CC=1 SCAR=6.9
Pod documented
99 0 my $self = shift;
100 0 return $self->{"user_name"};
101 }
102  
103 sub category
104 0 ▶{
Subroutine category: not called CC=1 SCAR=6.9
Pod documented
105 0 my $self = shift;
106 0 return $self->{"category"};
107 }
108  
109 sub author
110 0 ▶{
Subroutine author: not called CC=1 SCAR=6.9
Pod documented
111 0 my $self = shift;
112 0 return $self->{"author"};
113 }
114  
115 sub thumbURL
116 0 ▶{
Subroutine thumbURL: not called CC=2 SCAR=17.9
Pod documented
117 0 my $self = shift;
118 0 ▶ if(!$self->{"img_thumb"})
Branch: 1 branch
BranchTrueFalseTotal
unless ($self->{"img_thumb"}) 0 0 0
119 {
120 0 return $self->{"image"};
121 }
122 0 return $self->{"img_thumb"};
123 }
124  
125 sub galleryURL
126 0 ▶{
Subroutine galleryURL: not called CC=1 SCAR=6.9
Pod documented
127 0 my $self = shift;
128 0 return $self->{"img_gallery"};
129 }
130  
131 sub featureURL
132 0 ▶{
Subroutine featureURL: not called CC=1 SCAR=6.9
Pod documented
133 0 my $self = shift;
134 0 return $self->{"img_featurl"};
135 }
136  
137 sub link
138 0 ▶{
Subroutine link: not called CC=1 SCAR=6.9
Pod documented
139 0 my $self = shift;
140 0 return $self->{"link"};
141 }
142  
143 sub bookmarkID
144 0 ▶{
Subroutine bookmarkID: not called CC=1 SCAR=6.9
Pod documented
145 0 my $self = shift;
146 0 return $self->{"bookmark_id"};
147 }
148  
149 # Autoload methods go after =cut, and are processed by the autosplit program.
150  
151 1 1;
152 __END__
« blib/lib/Buzznet/Profile.pm ↑ Summary blib/lib/Buzznet/Buzzword.pm »