NAME

Net::API::CPAN::Permission - Meta CPAN API Permission Class

SYNOPSIS

use Net::API::CPAN::Permission;
my $obj = Net::API::CPAN::Permission->new( {
  co_maintainers => [
    "URASHIMATARO",
    "KINTARO",
    "YAMATONADESHIKO",
  ],
  module_name => "Folklore::Japan",
  owner => "MOMOTARO",
} ) || die( Net::API::CPAN::Permission->error );

my $array = $obj->co_maintainers;
my $string = $obj->module_name;
my $str = $obj->object;
my $string = $obj->owner;

VERSION

v0.1.0

DESCRIPTION

This class serves to retrieve and manipulate permissions.

It inherits from Net::API::CPAN::Generic

CONSTRUCTOR

new

Provided with an hash or hash reference of parameters, and this instantiates a new Net::API::CPAN::Permission object.

The parameters that can be provided bear the same name and supports the same values as the methods below.

METHODS

co_maintainers

$obj->co_maintainers( [
  "URASHIMATARO",
  "KINTARO",
  "YAMATONADESHIKO",
] );
my $array = $obj->co_maintainers;

Sets or gets an array of co_maintainers and returns an array object, even if there is no value.

module_name

$obj->module_name( "Folklore::Japan" );
my $string = $obj->module_name;

Sets or gets a string and returns a scalar object, even if there is no value.

object

Returns the object type for this class, which is permission

owner

$obj->owner( "MOMOTARO" );
my $string = $obj->owner;

Sets or gets a string and returns a scalar object, even if there is no value.

API SAMPLE

{
   "co_maintainers" : [
      "URASHIMATARO",
      "KINTARO",
      "YAMATONADESHIKO"
   ],
   "module_name" : "Folklore::Japan",
   "owner" : "MOMOTARO"
}

AUTHOR

Jacques Deguest <jack@deguest.jp>

SEE ALSO

Net::API::CPAN, Net::API::CPAN::Activity, Net::API::CPAN::Author, Net::API::CPAN::Changes, Net::API::CPAN::Changes::Release, Net::API::CPAN::Contributor, Net::API::CPAN::Cover, Net::API::CPAN::Diff, Net::API::CPAN::Distribution, Net::API::CPAN::DownloadUrl, Net::API::CPAN::Favorite, Net::API::CPAN::File, Net::API::CPAN::Module, Net::API::CPAN::Package, Net::API::CPAN::Permission, Net::API::CPAN::Rating, Net::API::CPAN::Release

MetaCPAN::API, MetaCPAN::Client

https://github.com/metacpan/metacpan-api/blob/master/docs/API-docs.md

COPYRIGHT & LICENSE

Copyright(c) 2023 DEGUEST Pte. Ltd.

All rights reserved

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.