line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# $Id$ |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package Google::Chart::QueryComponent::Simple; |
4
|
1
|
|
|
1
|
|
969
|
use Moose::Role; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
9
|
|
5
|
1
|
|
|
1
|
|
7933
|
use URI::Escape (); |
|
1
|
|
|
|
|
1961
|
|
|
1
|
|
|
|
|
46
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
with 'Google::Chart::QueryComponent'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
requires qw(parameter_name parameter_value); |
10
|
|
|
|
|
|
|
|
11
|
1
|
|
|
1
|
|
7
|
no Moose; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
11
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub as_query { |
14
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
return wantarray ? |
17
|
0
|
0
|
|
|
|
|
($self->parameter_name, $self->parameter_value) : |
18
|
|
|
|
|
|
|
join('=', $self->parameter_name, URI::Escape::uri_escape($self->parameter_value)) |
19
|
|
|
|
|
|
|
; |
20
|
|
|
|
|
|
|
}; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
1; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
__END__ |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 NAME |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
Google::Chart::QueryComponent::Simple - Simplified Google::Chart Query Component |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 SYNOPSIS |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
package MyStuff; |
33
|
|
|
|
|
|
|
use Moose; |
34
|
|
|
|
|
|
|
with 'Google::Chart::QueryComponent::Simple'; |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 METHODS |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=head2 as_query |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=cut |