line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Git::Database::Actor; |
2
|
|
|
|
|
|
|
$Git::Database::Actor::VERSION = '0.011'; |
3
|
7
|
|
|
7
|
|
52
|
use Moo; |
|
7
|
|
|
|
|
13
|
|
|
7
|
|
|
|
|
44
|
|
4
|
7
|
|
|
7
|
|
2100
|
use namespace::clean; |
|
7
|
|
|
|
|
17
|
|
|
7
|
|
|
|
|
38
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
has name => ( |
7
|
|
|
|
|
|
|
is => 'ro', |
8
|
|
|
|
|
|
|
required => 1, |
9
|
|
|
|
|
|
|
); |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
has email => ( |
12
|
|
|
|
|
|
|
is => 'ro', |
13
|
|
|
|
|
|
|
required => 1, |
14
|
|
|
|
|
|
|
); |
15
|
|
|
|
|
|
|
|
16
|
1290
|
|
|
1290
|
1
|
1337580
|
sub ident { $_[0]->name . ' <' . $_[0]->email . '>' } |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
1; |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
__END__ |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=pod |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=head1 NAME |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
Git::Database::Actor - An actor in Git::Database |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head1 VERSION |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
version 0.011 |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 SYNOPSIS |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
use Git::Database::Actor; |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
my $actor = Git::Database::Actor->new( |
37
|
|
|
|
|
|
|
name => 'Philippe Bruhat (BooK)', |
38
|
|
|
|
|
|
|
email => 'book@cpan.org' |
39
|
|
|
|
|
|
|
); |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
print $actor->ident; # Philippe Bruhat (BooK) <book@cpan.org> |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 DESCRIPTION |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
L<Git::Database::Actor> represents a user in L<Git::Database>, |
46
|
|
|
|
|
|
|
i.e. the combination of a name and an email. |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head2 name |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
The name of the actor. |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head2 email |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
The email of the actor. |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head1 METHODS |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head2 ident |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
The identity of the actor, build as: |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
Name <email> |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=head1 AUTHOR |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
Philippe Bruhat (BooK) <book@cpan.org>. |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head1 COPYRIGHT |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
Copyright 2013-2016 Philippe Bruhat (BooK), all rights reserved. |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=head1 LICENSE |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify it |
77
|
|
|
|
|
|
|
under the same terms as Perl itself. |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=cut |