line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::TypePad::Object::Blog; |
2
|
1
|
|
|
1
|
|
33888
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
74
|
|
3
|
1
|
|
|
1
|
|
7
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
100
|
|
4
|
1
|
|
|
1
|
|
1628
|
use WebService::TypePad::Util::Coerce; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
47
|
|
5
|
1
|
|
|
1
|
|
8
|
use base qw(WebService::TypePad::Object::Base); |
|
1
|
|
|
|
|
10
|
|
|
1
|
|
|
|
|
847
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub id { |
8
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
9
|
0
|
0
|
|
|
|
|
if (@_) { |
10
|
0
|
|
|
|
|
|
$self->{data}{id} = WebService::TypePad::Util::Coerce::coerce_string_in($_[0]); |
11
|
0
|
|
|
|
|
|
return $_[0]; |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
else { |
14
|
0
|
|
|
|
|
|
return $self->{data}{id}; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub url_id { |
19
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
20
|
0
|
0
|
|
|
|
|
if (@_) { |
21
|
0
|
|
|
|
|
|
$self->{data}{urlId} = WebService::TypePad::Util::Coerce::coerce_string_in($_[0]); |
22
|
0
|
|
|
|
|
|
return $_[0]; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
else { |
25
|
0
|
|
|
|
|
|
return $self->{data}{urlId}; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub title { |
30
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
31
|
0
|
0
|
|
|
|
|
if (@_) { |
32
|
0
|
|
|
|
|
|
$self->{data}{title} = WebService::TypePad::Util::Coerce::coerce_string_in($_[0]); |
33
|
0
|
|
|
|
|
|
return $_[0]; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
else { |
36
|
0
|
|
|
|
|
|
return $self->{data}{title}; |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
sub owner { |
41
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
42
|
0
|
0
|
|
|
|
|
if (@_) { |
43
|
0
|
|
|
|
|
|
$self->{data}{owner} = WebService::TypePad::Util::Coerce::coerce_User_in($_[0]); |
44
|
0
|
|
|
|
|
|
return $_[0]; |
45
|
|
|
|
|
|
|
} |
46
|
|
|
|
|
|
|
else { |
47
|
0
|
|
|
|
|
|
return WebService::TypePad::Util::Coerce::coerce_User_out($self->{data}{owner}); |
48
|
|
|
|
|
|
|
} |
49
|
|
|
|
|
|
|
} |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
sub description { |
52
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
53
|
0
|
0
|
|
|
|
|
if (@_) { |
54
|
0
|
|
|
|
|
|
$self->{data}{description} = WebService::TypePad::Util::Coerce::coerce_string_in($_[0]); |
55
|
0
|
|
|
|
|
|
return $_[0]; |
56
|
|
|
|
|
|
|
} |
57
|
|
|
|
|
|
|
else { |
58
|
0
|
|
|
|
|
|
return $self->{data}{description}; |
59
|
|
|
|
|
|
|
} |
60
|
|
|
|
|
|
|
} |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
sub object_types { |
63
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
64
|
0
|
0
|
|
|
|
|
if (@_) { |
65
|
0
|
|
|
|
|
|
$self->{data}{objectTypes} = WebService::TypePad::Util::Coerce::coerce_set_in($_[0], \&WebService::TypePad::Util::Coerce::coerce_string_in); |
66
|
0
|
|
|
|
|
|
return $_[0]; |
67
|
|
|
|
|
|
|
} |
68
|
|
|
|
|
|
|
else { |
69
|
0
|
|
|
|
|
|
return WebService::TypePad::Util::Coerce::coerce_set_out($self->{data}{objectTypes}); |
70
|
|
|
|
|
|
|
} |
71
|
|
|
|
|
|
|
} |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
sub links { |
74
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
75
|
0
|
0
|
|
|
|
|
if (@_) { |
76
|
0
|
|
|
|
|
|
$self->{data}{links} = WebService::TypePad::Util::Coerce::coerce_list_in($_[0], \&WebService::TypePad::Util::Coerce::coerce_LegacyHyperlink_in); |
77
|
0
|
|
|
|
|
|
return $_[0]; |
78
|
|
|
|
|
|
|
} |
79
|
|
|
|
|
|
|
else { |
80
|
0
|
|
|
|
|
|
return WebService::TypePad::Util::Coerce::coerce_array_out($self->{data}{links}, \&WebService::TypePad::Util::Coerce::coerce_LegacyHyperlink_out); |
81
|
|
|
|
|
|
|
} |
82
|
|
|
|
|
|
|
} |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
1; |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
=head1 NAME |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
WebService::TypePad::Object::Blog - Perl representation of TypePad's Blog object type |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=head1 SYNOPSIS |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
use WebService::TypePad::Object::Blog; |
93
|
|
|
|
|
|
|
my $blog = WebService::TypePad::Object::Blog->new(); |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
=head1 DESCRIPTION |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
This is a Perl representation of TypePad's Blog object type. |
98
|
|
|
|
|
|
|
For more information about this type and its parameters, see L. |
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
=head1 PROPERTIES |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
Each of these properties has an accessor method which will retrieve the property's value when called with no arguments or set the property's value when called with one argument. |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
=head2 $blog->description |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
The description of the blog as provided by its owner. |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
Returns a single C value. |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
=head2 $blog->id |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
A URI that serves as a globally-unique id for the object. This can be used to recognise where the same user is returned in response to different requests, and as a mapping key for an application's local data store. |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
Returns a single C value. |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
=head2 $blog->links |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
The hyperlinks for the blog object. The "alternate" hyperlink of type "text/html" points at the blog's home page. |
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
Returns an array of L objects. |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
=head2 $blog->object_types |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
An array of object type identifier URIs. At the present time, only one object type is returned per object, but this may be extended in future. Clients should scan this list and ignore any types that are not recognized. |
125
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
Returns a set of C values. |
127
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
=head2 $blog->owner |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
The user that owns the blog. |
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
Returns a single L object. |
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
=head2 $blog->title |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
The title of the blog. |
137
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
Returns a single C value. |
139
|
|
|
|
|
|
|
|
140
|
|
|
|
|
|
|
=head2 $blog->url_id |
141
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
A string containing the canonical identifier that can be used as the "id" for this object in URLs. However, this should not be used as a database key to avoid collisions when an application is switched to a different backend server; use the "id" property instead. |
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
Returns a single C value. |
145
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
=head1 SEE ALSO |
147
|
|
|
|
|
|
|
|
148
|
|
|
|
|
|
|
=over 1 |
149
|
|
|
|
|
|
|
|
150
|
|
|
|
|
|
|
=item * L |
151
|
|
|
|
|
|
|
|
152
|
|
|
|
|
|
|
=item * L |
153
|
|
|
|
|
|
|
|
154
|
|
|
|
|
|
|
=back |