line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::TypePad::Object::ImageLink; |
2
|
1
|
|
|
1
|
|
1115
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
29
|
|
3
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
25
|
|
4
|
1
|
|
|
1
|
|
5
|
use WebService::TypePad::Util::Coerce; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
23
|
|
5
|
1
|
|
|
1
|
|
5
|
use base qw(WebService::TypePad::Object::Base); |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
393
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub url { |
8
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
9
|
0
|
0
|
|
|
|
|
if (@_) { |
10
|
0
|
|
|
|
|
|
$self->{data}{url} = WebService::TypePad::Util::Coerce::coerce_string_in($_[0]); |
11
|
0
|
|
|
|
|
|
return $_[0]; |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
else { |
14
|
0
|
|
|
|
|
|
return $self->{data}{url}; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub url_template { |
19
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
20
|
0
|
0
|
|
|
|
|
if (@_) { |
21
|
0
|
|
|
|
|
|
$self->{data}{urlTemplate} = WebService::TypePad::Util::Coerce::coerce_string_in($_[0]); |
22
|
0
|
|
|
|
|
|
return $_[0]; |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
else { |
25
|
0
|
|
|
|
|
|
return $self->{data}{urlTemplate}; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub width { |
30
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
31
|
0
|
0
|
|
|
|
|
if (@_) { |
32
|
0
|
|
|
|
|
|
$self->{data}{width} = WebService::TypePad::Util::Coerce::coerce_integer_in($_[0]); |
33
|
0
|
|
|
|
|
|
return $_[0]; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
else { |
36
|
0
|
|
|
|
|
|
return $self->{data}{width}; |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
sub height { |
41
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
42
|
0
|
0
|
|
|
|
|
if (@_) { |
43
|
0
|
|
|
|
|
|
$self->{data}{height} = WebService::TypePad::Util::Coerce::coerce_integer_in($_[0]); |
44
|
0
|
|
|
|
|
|
return $_[0]; |
45
|
|
|
|
|
|
|
} |
46
|
|
|
|
|
|
|
else { |
47
|
0
|
|
|
|
|
|
return $self->{data}{height}; |
48
|
|
|
|
|
|
|
} |
49
|
|
|
|
|
|
|
} |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
1; |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head1 NAME |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
WebService::TypePad::Object::ImageLink - Perl representation of TypePad's ImageLink object type |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 SYNOPSIS |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
use WebService::TypePad::Object::ImageLink; |
60
|
|
|
|
|
|
|
my $image_link = WebService::TypePad::Object::ImageLink->new(); |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head1 DESCRIPTION |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
This is a Perl representation of TypePad's ImageLink object type. |
65
|
|
|
|
|
|
|
For more information about this type and its parameters, see L. |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=head1 PROPERTIES |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
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. |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=head2 $image_link->height |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
The height of the original image in pixels. |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
Returns a single C value. |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=head2 $image_link->url |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
The URL for the original (full-size) version of this image. |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
Returns a single C value. |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
=head2 $image_link->url_template |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
If TypePad is able to provide a scaled version of this image, a URL template which uses the placeholder C<{spec}> to represent where to place a sizing spec as described above. C if TypePad is unable to provide a scaled version of this image, for example if the image is not actually hosted on TypePad itself. |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
Returns a single C value. |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
=head2 $image_link->width |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
The width of the original image in pixels. |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
Returns a single C value. |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
=head1 SEE ALSO |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
=over 1 |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
=item * L |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
=back |