line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::TypePad::Object::AssetSource; |
2
|
1
|
|
|
1
|
|
1133
|
use strict; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
34
|
|
3
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
25
|
|
4
|
1
|
|
|
1
|
|
5
|
use WebService::TypePad::Util::Coerce; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
22
|
|
5
|
1
|
|
|
1
|
|
5
|
use base qw(WebService::TypePad::Object::Base); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
425
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub by_user { |
8
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
9
|
0
|
0
|
|
|
|
|
if (@_) { |
10
|
0
|
|
|
|
|
|
$self->{data}{byUser} = WebService::TypePad::Util::Coerce::coerce_boolean_in($_[0]); |
11
|
0
|
|
|
|
|
|
return $_[0]; |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
else { |
14
|
0
|
|
|
|
|
|
return WebService::TypePad::Util::Coerce::coerce_boolean_out($self->{data}{byUser}); |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub links { |
19
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
20
|
0
|
0
|
|
|
|
|
if (@_) { |
21
|
0
|
|
|
|
|
|
$self->{data}{links} = WebService::TypePad::Util::Coerce::coerce_list_in($_[0], \&WebService::TypePad::Util::Coerce::coerce_LegacyHyperlink_in); |
22
|
0
|
|
|
|
|
|
return $_[0]; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
else { |
25
|
0
|
|
|
|
|
|
return WebService::TypePad::Util::Coerce::coerce_array_out($self->{data}{links}, \&WebService::TypePad::Util::Coerce::coerce_LegacyHyperlink_out); |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub provider { |
30
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
31
|
0
|
0
|
|
|
|
|
if (@_) { |
32
|
0
|
|
|
|
|
|
$self->{data}{provider} = WebService::TypePad::Util::Coerce::coerce_map_in($_[0], \&WebService::TypePad::Util::Coerce::coerce_string_in); |
33
|
0
|
|
|
|
|
|
return $_[0]; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
else { |
36
|
0
|
|
|
|
|
|
return WebService::TypePad::Util::Coerce::coerce_map_out($self->{data}{provider}); |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
1; |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 NAME |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
WebService::TypePad::Object::AssetSource - Perl representation of TypePad's AssetSource object type |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 SYNOPSIS |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
use WebService::TypePad::Object::AssetSource; |
49
|
|
|
|
|
|
|
my $asset_source = WebService::TypePad::Object::AssetSource->new(); |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 DESCRIPTION |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
This is a Perl representation of TypePad's AssetSource object type. |
54
|
|
|
|
|
|
|
For more information about this type and its parameters, see L. |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head1 PROPERTIES |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
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. |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head2 $asset_source->by_user |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
B C if this content is considered to be created by its author, or C if it's actually someone else's content imported by the asset author. |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
Returns a single C value. |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=head2 $asset_source->links |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
B Hyperlinks for this source object. Contains a link whose rel is "alternate" and whose type is "text/html" which is the original permalink of an item that was imported from elsewhere. |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
Returns an array of L objects. |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=head2 $asset_source->provider |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
B Description of the external service provider from which this content was imported. Contains "name", "icon", and "uri" properties. |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
Returns a map of C values. |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=head1 SEE ALSO |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=over 1 |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
=item * L |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=back |