Modules

  • ABCDE
  • FGHIL
  • MNOPS
  • TUX

Tools

CPANPLUS::Module::Author

Perl 5 version 16.2 documentation
Recently read

CPANPLUS::Module::Author

NAME

CPANPLUS::Module::Author - CPAN author object for CPANPLUS

SYNOPSIS

  1. my $author = CPANPLUS::Module::Author->new(
  2. author => 'Jack Ashton',
  3. cpanid => 'JACKASH',
  4. _id => INTERNALS_OBJECT_ID,
  5. );
  6. $author->cpanid;
  7. $author->author;
  8. $author->email;
  9. @dists = $author->distributions;
  10. @mods = $author->modules;
  11. @accessors = CPANPLUS::Module::Author->accessors;

DESCRIPTION

CPANPLUS::Module::Author creates objects from the information in the source files. These can then be used to query on.

These objects should only be created internally. For fake objects, there's the CPANPLUS::Module::Author::Fake class.

ACCESSORS

An objects of this class has the following accessors:

  • author

    Name of the author.

  • cpanid

    The CPAN id of the author.

  • email

    The email address of the author, which defaults to '' if not provided.

  • parent

    The CPANPLUS::Internals::Object that spawned this module object.

METHODS

$auth = CPANPLUS::Module::Author->new( author => AUTHOR_NAME, cpanid => CPAN_ID, _id => INTERNALS_ID [, email => AUTHOR_EMAIL] )

This method returns a CPANPLUS::Module::Author object, based on the given parameters.

Returns false on failure.

@mod_objs = $auth->modules()

Return a list of module objects this author has released.

@dists = $auth->distributions()

Returns a list of module objects representing all the distributions this author has released.

CLASS METHODS

accessors ()

Returns a list of all accessor methods to the object