line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::ValidSign::Types; |
2
|
|
|
|
|
|
|
our $VERSION = '0.002'; |
3
|
4
|
|
|
4
|
|
138982
|
use warnings; |
|
4
|
|
|
|
|
16
|
|
|
4
|
|
|
|
|
143
|
|
4
|
4
|
|
|
4
|
|
21
|
use strict; |
|
4
|
|
|
|
|
10
|
|
|
4
|
|
|
|
|
102
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
# ABSTRACT: Moo(se) like types defined for WebService::ValidSign |
7
|
|
|
|
|
|
|
|
8
|
4
|
|
|
4
|
|
541
|
use Types::Standard qw(Str); |
|
4
|
|
|
|
|
74427
|
|
|
4
|
|
|
|
|
26
|
|
9
|
4
|
|
|
4
|
|
2829
|
use URI; |
|
4
|
|
|
|
|
4572
|
|
|
4
|
|
|
|
|
130
|
|
10
|
4
|
|
|
4
|
|
1814
|
use Type::Utils -all; |
|
4
|
|
|
|
|
19506
|
|
|
4
|
|
|
|
|
39
|
|
11
|
|
|
|
|
|
|
use Type::Library |
12
|
4
|
|
|
|
|
20
|
-base, |
13
|
|
|
|
|
|
|
-declare => qw( |
14
|
|
|
|
|
|
|
WebServiceValidSignURI |
15
|
|
|
|
|
|
|
WebServiceValidSignAuthModule |
16
|
4
|
|
|
4
|
|
13574
|
); |
|
4
|
|
|
|
|
11
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
class_type WebServiceValidSignURI, {class => 'URI' }; |
19
|
|
|
|
|
|
|
coerce WebServiceValidSignURI, from Str, via { return URI->new($_); }; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
class_type WebServiceValidSignAuthModule, {class => 'WebService::ValidSign::API::Auth' }; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
1; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
__END__ |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
=pod |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=encoding UTF-8 |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 NAME |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
WebService::ValidSign::Types - Moo(se) like types defined for WebService::ValidSign |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 VERSION |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
version 0.002 |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 SYNOPSIS |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
package Foo; |
42
|
|
|
|
|
|
|
use Moo; |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
use WebService::ValidSign::Types qw(WebServiceValidSignURI); |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
has bar => ( |
47
|
|
|
|
|
|
|
is => 'ro', |
48
|
|
|
|
|
|
|
isa => WebServiceValidSignURI, |
49
|
|
|
|
|
|
|
); |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 DESCRIPTION |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
Defines custom types for WebService::ValidSign modules |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head1 TYPES |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head2 WebServiceValidSignURI |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
Allows a scalar URI, eq 'https://foo.bar.nl', or a URI object. |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head1 AUTHOR |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
Wesley Schwengle <waterkip@cpan.org> |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
This software is Copyright (c) 2019 by Wesley Schwengle. |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
This is free software, licensed under: |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
The (three-clause) BSD License |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=cut |