line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Google::Chart::Color; |
2
|
1
|
|
|
1
|
|
5
|
use Moose; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
9
|
|
3
|
1
|
|
|
1
|
|
8696
|
use Moose::Util::TypeConstraints; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
55
|
|
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
3433
|
use constant parameter_name => 'chco'; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
441
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
with 'Google::Chart::QueryComponent::Simple'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
coerce 'Google::Chart::Color' |
10
|
|
|
|
|
|
|
=> from 'ArrayRef' |
11
|
|
|
|
|
|
|
=> via { |
12
|
|
|
|
|
|
|
Google::Chart::Color->new(values => $_); |
13
|
|
|
|
|
|
|
} |
14
|
|
|
|
|
|
|
; |
15
|
|
|
|
|
|
|
coerce 'Google::Chart::Color' |
16
|
|
|
|
|
|
|
=> from 'HashRef' |
17
|
|
|
|
|
|
|
=> via { |
18
|
|
|
|
|
|
|
Google::Chart::Color->new(%{$_}); |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
; |
21
|
|
|
|
|
|
|
coerce 'Google::Chart::Color' |
22
|
|
|
|
|
|
|
=> from 'Str' |
23
|
|
|
|
|
|
|
=> via { |
24
|
|
|
|
|
|
|
Google::Chart::Color->new(values => [$_]); |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
subtype 'Google::Chart::Color::Data' |
29
|
|
|
|
|
|
|
=> as 'Str' |
30
|
|
|
|
|
|
|
=> where { /^[a-f0-9]{6}$/i } |
31
|
|
|
|
|
|
|
=> message { "value '$_' is not a valid hexadecimal value" } |
32
|
|
|
|
|
|
|
; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
subtype 'Google::Chart::Color::DataList' |
35
|
|
|
|
|
|
|
=> as 'ArrayRef[Google::Chart::Color::Data]' |
36
|
|
|
|
|
|
|
; |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
coerce 'Google::Chart::Color::DataList' |
39
|
|
|
|
|
|
|
=> from 'Str' |
40
|
|
|
|
|
|
|
=> via { [ $_ ] } |
41
|
|
|
|
|
|
|
; |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
has 'values' => ( |
44
|
|
|
|
|
|
|
is => 'rw', |
45
|
|
|
|
|
|
|
isa => 'Google::Chart::Color::DataList', |
46
|
|
|
|
|
|
|
coerce => 1, |
47
|
|
|
|
|
|
|
required => 1, |
48
|
|
|
|
|
|
|
default => sub { +[] } |
49
|
|
|
|
|
|
|
); |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
52
|
|
|
|
|
|
|
|
53
|
1
|
|
|
1
|
|
6
|
no Moose; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
8
|
|
54
|
1
|
|
|
1
|
|
365
|
no Moose::Util::TypeConstraints; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
7
|
|
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
sub parameter_value { |
57
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
58
|
0
|
|
|
|
|
|
join(',', @{ $self->values }); |
|
0
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
} |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
1; |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
__END__ |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head1 NAME |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
Google::Chart::Color - Google::Chart Color |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=cut |