line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
our $VERSION = '0.004'; |
2
|
|
|
|
|
|
|
use Moo; |
3
|
3
|
|
|
3
|
|
16
|
|
|
3
|
|
|
|
|
18
|
|
|
3
|
|
|
|
|
15
|
|
4
|
|
|
|
|
|
|
extends 'WebService::ValidSign::Object'; |
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
use Types::Standard qw(Str Bool); |
7
|
3
|
|
|
3
|
|
840
|
|
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
23
|
|
8
|
|
|
|
|
|
|
# ABSTRACT: A ValidSign Sender object |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
has '+type' => (default => "SENDER"); |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
has first_name => ( |
13
|
|
|
|
|
|
|
is => 'ro', |
14
|
|
|
|
|
|
|
isa => Str, |
15
|
|
|
|
|
|
|
required => 1, |
16
|
|
|
|
|
|
|
); |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
has last_name => ( |
19
|
|
|
|
|
|
|
is => 'rw', |
20
|
|
|
|
|
|
|
isa => Str, |
21
|
|
|
|
|
|
|
required => 1, |
22
|
|
|
|
|
|
|
); |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
has email => ( |
25
|
|
|
|
|
|
|
is => 'rw', |
26
|
|
|
|
|
|
|
isa => Str, |
27
|
|
|
|
|
|
|
required => 1, |
28
|
|
|
|
|
|
|
); |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
my $self = shift; |
31
|
|
|
|
|
|
|
my $meta = $self->meta; |
32
|
0
|
|
|
0
|
0
|
|
|
33
|
0
|
|
|
|
|
|
my %result; |
34
|
|
|
|
|
|
|
for my $attr ($meta->get_all_attributes) { |
35
|
0
|
|
|
|
|
|
my $name = $attr->name; |
36
|
0
|
|
|
|
|
|
my $value = $attr->get_value($self); |
37
|
0
|
|
|
|
|
|
$result{$name} = $value if defined $value; |
38
|
0
|
|
|
|
|
|
} |
39
|
0
|
0
|
|
|
|
|
require WebService::ValidSign::Object::Signer; |
40
|
|
|
|
|
|
|
return WebService::ValidSign::Object::Signer->new(%result); |
41
|
0
|
|
|
|
|
|
} |
42
|
0
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=pod |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=encoding UTF-8 |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 NAME |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
WebService::ValidSign::Object::Sender - A ValidSign Sender object |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head1 VERSION |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
version 0.004 |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head1 AUTHOR |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
Wesley Schwengle <waterkip@cpan.org> |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
This software is Copyright (c) 2019 by Wesley Schwengle. |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
This is free software, licensed under: |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
The (three-clause) BSD License |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=cut |