Posterous/Site.pm

filter: Statementstmt 94.4% 17 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 100% 1 / 1 totaltotal 91.3% 21 / 23 CC 1 SCAR 2.2
CC
1
Cov
94%
comments_enabled
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Posterous/Media/Video.pm ↑ Summary Posterous/Media.pm »
1 package Net::Posterous::Site;
2  
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use base qw(Net::Posterous::Object);
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use Class::Accessor "antlers";
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 =head1 NAME
8  
9 Net::Posterous::Site - represent a site instance in Net::Posterous
10  
11 =head1 METHODS
12  
13 =cut
14  
15 =head2 id
16  
17 Get or set the id for this Site.
18  
19 =cut
20  
21 2 has id => ( is => "rw", isa => "Int" );
22  
23 =head2 name
24  
25 Get or set the name for this Site.
26  
27 =cut
28  
29 2 has name => ( is => "rw", isa => "Str" );
30  
31 =head2 url
32  
33 Get or set the url for this Site.
34  
35 =cut
36  
37 2 has url => ( is => "rw", isa => "Str" );
38  
39 =head2 private
40  
41 Get or set whether this Site is private or not.
42  
43 =cut
44  
45 2 has private => ( is => "rw", isa => "Bool" );
46  
47 =head2 primary
48  
49 Get or set whether this Site is the primary site or not.
50  
51 =cut
52  
53 2 has primary => ( is => "rw", isa => "Bool" );
54  
55 =head2 comments_enabled
56  
57 =head2 commentsenabled
58  
59 Get or set whether this Site has comments enabled.
60  
61 C<commentsenabled> is an alias due to Posterous having interestingly inconsistent naming schema.
62  
63 =cut
64  
65 0 ▶sub comments_enabled { shift->commentsenabled(@_); }
Subroutine comments_enabled: not called CC=1 SCAR=6.9
Pod documented
66  
67 2 has commentsenabled => ( is => "rw", isa => "Bool" );
68  
69 =head2 num_posts
70  
71 Get or set the number of posts this Site has.
72  
73 =cut
74  
75 2 has num_posts => ( is => "rw", isa => "Int" );
76  
77 2 1;
« Posterous/Media/Video.pm ↑ Summary Posterous/Media.pm »