Posterous/Tag.pm

filter: Statementstmt 100% 10 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 12 / 12 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Posterous/Media/Audio.pm ↑ Summary
1 package Net::Posterous::Tag;
2  
3 2 ▶use base qw(Net::Posterous::Object);
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use Class::Accessor "antlers";
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 =head1 NAME
7  
8 Net::Posterous::Tag - represent a tag in Net::Posterous
9  
10 =head1 DESCRIPTION
11  
12 This is one of those weird bits of Posterous where they represent the same thing in different ways.
13  
14 In this case there are 3 different ways of representing tags. The other two forms are abstracted away
15 and this form only gets used when getting global tabs with C<get_tags()>.
16  
17 =head1 METHODS
18  
19 =cut
20  
21 =head2 id
22  
23 Get or set the id of this tag.
24  
25 =cut
26  
27 2 has id => ( is => "rw", isa => "Int" );
28  
29 =head2 tag_string
30  
31 Get or set the value of this tag.
32  
33 =cut
34  
35 2 has tag_string => ( is => "rw", isa => "Str" );
36  
37 =head2 count
38  
39 Get or set the number of posts that have this tag.
40  
41 =cut
42  
43 2 has count => ( is => "rw", isa => "Int" );
44 2 1;
45  
46  
« Posterous/Media/Audio.pm ↑ Summary