line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::TypePad::Object::AssetRef; |
2
|
1
|
|
|
1
|
|
1847
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
34
|
|
3
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
28
|
|
4
|
1
|
|
|
1
|
|
6
|
use WebService::TypePad::Util::Coerce; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
24
|
|
5
|
1
|
|
|
1
|
|
6
|
use base qw(WebService::TypePad::Object::Base); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
616
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub ref { |
8
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
9
|
0
|
0
|
|
|
|
|
if (@_) { |
10
|
0
|
|
|
|
|
|
$self->{data}{ref} = WebService::TypePad::Util::Coerce::coerce_string_in($_[0]); |
11
|
0
|
|
|
|
|
|
return $_[0]; |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
else { |
14
|
0
|
|
|
|
|
|
return $self->{data}{ref}; |
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 href { |
30
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
31
|
0
|
0
|
|
|
|
|
if (@_) { |
32
|
0
|
|
|
|
|
|
$self->{data}{href} = WebService::TypePad::Util::Coerce::coerce_string_in($_[0]); |
33
|
0
|
|
|
|
|
|
return $_[0]; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
else { |
36
|
0
|
|
|
|
|
|
return $self->{data}{href}; |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
sub type { |
41
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
42
|
0
|
0
|
|
|
|
|
if (@_) { |
43
|
0
|
|
|
|
|
|
$self->{data}{type} = WebService::TypePad::Util::Coerce::coerce_string_in($_[0]); |
44
|
0
|
|
|
|
|
|
return $_[0]; |
45
|
|
|
|
|
|
|
} |
46
|
|
|
|
|
|
|
else { |
47
|
0
|
|
|
|
|
|
return $self->{data}{type}; |
48
|
|
|
|
|
|
|
} |
49
|
|
|
|
|
|
|
} |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
sub author { |
52
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
53
|
0
|
0
|
|
|
|
|
if (@_) { |
54
|
0
|
|
|
|
|
|
$self->{data}{author} = WebService::TypePad::Util::Coerce::coerce_User_in($_[0]); |
55
|
0
|
|
|
|
|
|
return $_[0]; |
56
|
|
|
|
|
|
|
} |
57
|
|
|
|
|
|
|
else { |
58
|
0
|
|
|
|
|
|
return WebService::TypePad::Util::Coerce::coerce_User_out($self->{data}{author}); |
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_array_in($_[0], \&WebService::TypePad::Util::Coerce::coerce_string_in); |
66
|
0
|
|
|
|
|
|
return $_[0]; |
67
|
|
|
|
|
|
|
} |
68
|
|
|
|
|
|
|
else { |
69
|
0
|
|
|
|
|
|
return WebService::TypePad::Util::Coerce::coerce_array_out($self->{data}{objectTypes}); |
70
|
|
|
|
|
|
|
} |
71
|
|
|
|
|
|
|
} |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
1; |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=head1 NAME |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
WebService::TypePad::Object::AssetRef - Perl representation of TypePad's AssetRef object type |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=head1 SYNOPSIS |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
use WebService::TypePad::Object::AssetRef; |
82
|
|
|
|
|
|
|
my $asset_ref = WebService::TypePad::Object::AssetRef->new(); |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=head1 DESCRIPTION |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
This is a Perl representation of TypePad's AssetRef object type. |
87
|
|
|
|
|
|
|
For more information about this type and its parameters, see L. |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
=head1 PROPERTIES |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
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. |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=head2 $asset_ref->author |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
The user that created the selected asset. |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
Returns a single L object. |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
=head2 $asset_ref->href |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
The URL at which a representation of the corresponding asset can be retrieved. |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
Returns a single C value. |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
=head2 $asset_ref->object_types |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
An array of object type identifier URIs. At the present time, only one object type is returned per asset, but this may be extended in future. Clients should scan this list and ignore any types that are not recognised. This list also includes appropriate type URIs as defined by the ActivityStrea.ms schema specification. |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
Returns an array of C values. |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
=head2 $asset_ref->ref |
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
A URI that serves as a globally-unique id for the asset. This matches the "id" property in the corresponding L object. |
114
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
Returns a single C value. |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
=head2 $asset_ref->type |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
The MIME type of the representation at the URL given in the "href" property. |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
Returns a single C value. |
122
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
=head2 $asset_ref->url_id |
124
|
|
|
|
|
|
|
|
125
|
|
|
|
|
|
|
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 such as the development server; use the "id" property instead. This matchies the "urlId" propert in the corresponding asset. |
126
|
|
|
|
|
|
|
|
127
|
|
|
|
|
|
|
Returns a single C value. |
128
|
|
|
|
|
|
|
|
129
|
|
|
|
|
|
|
=head1 SEE ALSO |
130
|
|
|
|
|
|
|
|
131
|
|
|
|
|
|
|
=over 1 |
132
|
|
|
|
|
|
|
|
133
|
|
|
|
|
|
|
=item * L |
134
|
|
|
|
|
|
|
|
135
|
|
|
|
|
|
|
=back |