logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

MetaCPAN::Client::Role::Entity - A role for MetaCPAN entities

Attributes

data
       Hash reference containing all the entity data.

       Entities are usually generated using "new_from_request" which sets the "data" attribute appropriately by
       picking the relevant information.

       Required.

Authors

       •   Sawyer X <xsawyerx@cpan.org>

       •   Mickey Nasriachi <mickey@cpan.org>

Description

       This is a role to be consumed by all MetaCPAN::Client entities. It provides common attributes and
       methods.

Methods

new_from_request
       Create a new entity object using a request hash. The hash represents the information returned from a
       MetaCPAN request. This also sets the data attribute.

   BUILDARGS
       Perform type checks & conversion for the incoming data.

Name

       MetaCPAN::Client::Role::Entity - A role for MetaCPAN entities

Version

       version 2.033000

See Also