The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Net::API::CPAN::Release::Suggest - Meta CPAN API Release::Suggest Class

SYNOPSIS

    use Net::API::CPAN::Release::Suggest;
    my $obj = Net::API::CPAN::Release::Suggest->new( {
      author => "MOMOTARO",
      date => "2023-09-01T10:12:42",
      deprecated => \0,
      distribution => "Japan-Folklore",
      name => "Japan::Folklore",
      release => "Japan-Folklore-v1.2.3",
    } ) || die( Net::API::CPAN::Release::Suggest->error );
    
    my $string = $obj->author;
    my $date = $obj->date;
    my $bool = $obj->deprecated;
    my $string = $obj->distribution;
    my $string = $obj->name;
    my $str = $obj->object;
    my $string = $obj->release;

VERSION

    v0.1.0

DESCRIPTION

This class serves to retrieve and manipulate suggests.

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::Release::Suggest object.

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

METHODS

author

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

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

date

    $obj->date( "2023-09-01T10:12:42" );
    my $datetime_obj = $obj->date;

Sets or gets a datetime value, and returns a DateTime object that stringifies to the format that was provided with the string set (usally an ISO 8601 datetime format) or undef if no value is set.

deprecated

    $obj->deprecated(1);
    my $bool = $obj->deprecated;

Sets or gets a boolean value, and returns a boolean object or undef if no value is set.

distribution

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

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

name

    $obj->name( "Japan::Folklore" );
    my $string = $obj->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 suggest

release

    $obj->release( "Japan-Folklore-v1.2.3" );
    my $string = $obj->release;

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

API SAMPLE

    {
        "author" : "MOMOTARO",
        "name" : "Japan::Folklore",
        "deprecated" : false,
        "distribution" : "Japan-Folklore",
        "date" : "2023-09-01T10:12:42",
        "release" : "Japan-Folklore-v1.2.3"
    }

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.