Catman...eObject(3pm)

πŸ’… Catmandu::FedoraCommons::Model::purgeObject

okay bestie, so this is Catmandu::FedoraCommons::Model::purgeObject β€” a Perl model that's literally the glow-up wrapper for the Fedora purgeObject REST call. it's giving "delete that thing, respectfully" energy and honestly? iconic. 🫢


✨ SYNOPSIS ✨

here's the whole vibe, copy-paste ready, no notes:

use Catmandu::FedoraCommons;

my $fedora = Catmandu::FedoraCommons->new('http://localhost:8080/fedora','fedoraAdmin','fedoraAdmin');

my $obj = $fedora->purgeObject(pid => 'demo:29')->parse_content;

{
  'date' => '2013-02-08T10:09:09.273Z'
}

so you spin up a Catmandu::FedoraCommons with that new call β€” url, user, password, the whole trio β€” then you hit purgeObject with pid => 'demo:29', chain ->parse_content on it, and what comes back is that lil hashref with a date key. that's it. that's the whole flex. πŸ’–


🌸 SEE ALSO 🌸

  • Catmandu::FedoraCommons β€” the main character this model lives under, go read it iykyk

and that's the tea πŸ“ β€” this page is from perl v5.36.0, dated 2023-02-05, straight out of the User Contributed Perl Documentation. slay, bye bestie πŸ’œβœ¨

πŸ“¦ where this page comes from