1CPANPLUS::Module::AuthoUrs(e3r)Contributed Perl DocumentCaPtAiNoPnLUS::Module::Author(3)
2
3
4
6 CPANPLUS::Module::Author - CPAN author object for CPANPLUS
7
9 my $author = CPANPLUS::Module::Author->new(
10 author => 'Jack Ashton',
11 cpanid => 'JACKASH',
12 _id => INTERNALS_OBJECT_ID,
13 );
14
15 $author->cpanid;
16 $author->author;
17 $author->email;
18
19 @dists = $author->distributions;
20 @mods = $author->modules;
21
22 @accessors = CPANPLUS::Module::Author->accessors;
23
25 "CPANPLUS::Module::Author" creates objects from the information in the
26 source files. These can then be used to query on.
27
28 These objects should only be created internally. For "fake" objects,
29 there's the "CPANPLUS::Module::Author::Fake" class.
30
32 An objects of this class has the following accessors:
33
34 author
35 Name of the author.
36
37 cpanid
38 The CPAN id of the author.
39
40 email
41 The email address of the author, which defaults to '' if not
42 provided.
43
44 parent
45 The "CPANPLUS::Internals::Object" that spawned this module object.
46
48 $auth = CPANPLUS::Module::Author->new( author => AUTHOR_NAME, cpanid =>
49 CPAN_ID, _id => INTERNALS_ID [, email => AUTHOR_EMAIL] )
50 This method returns a "CPANPLUS::Module::Author" object, based on the
51 given parameters.
52
53 Returns false on failure.
54
55 @mod_objs = $auth->modules()
56 Return a list of module objects this author has released.
57
58 @dists = $auth->distributions()
59 Returns a list of module objects representing all the distributions
60 this author has released.
61
63 accessors ()
64 Returns a list of all accessor methods to the object
65
66
67
68perl v5.28.0 2018-06-06 CPANPLUS::Module::Author(3)