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::Recent - Meta CPAN API Release::Recent Class

SYNOPSIS

    use Net::API::CPAN::Release::Recent;
    my $obj = Net::API::CPAN::Release::Recent->new( {
      abstract => "Japan Folklore Object Class",
      author => "MOMOTARO",
      date => "2023-07-29T05:10:12",
      distribution => "Folklore-Japan",
      maturity => "developer",
      name => "Folklore-Japan-v1.2.3",
      status => "latest",
    } ) || die( Net::API::CPAN::Release::Recent->error );
    
    my $string = $obj->abstract;
    my $string = $obj->author;
    my $date = $obj->date;
    my $string = $obj->distribution;
    my $string = $obj->maturity;
    my $string = $obj->name;
    my $str = $obj->object;
    my $string = $obj->status;

VERSION

    v0.1.1

DESCRIPTION

This class serve to retrieve and manipulate recent releases.

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::Recent object.

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

METHODS

abstract

    $obj->abstract( "Japan Folklore Object Class" );
    my $string = $obj->abstract;

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

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-07-29T05:10:12" );
    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.

distribution

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

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

maturity

    $obj->maturity( "developer" );
    my $string = $obj->maturity;

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

name

    $obj->name( "Folklore-Japan-v1.2.3" );
    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 release_recent

status

    $obj->status( "latest" );
    my $string = $obj->status;

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

API SAMPLE

    {
        "abstract" : "Japan Folklore Object Class",
        "author" : "MOMOTARO",
        "date" : "2023-07-29T05:10:12",
        "distribution" : "Folklore-Japan",
        "maturity" : "developer",
        "name" : "Folklore-Japan-v1.2.3",
        "status" : "latest"
    }

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.