Metaba...Profile(3pm)

πŸ“¦
version 0.025 Β· 3 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– Metaba...Profile(3pm) πŸ’–

okay bestie, welcome to the User Contributed Perl Documentation section, where we're talking about Metaba...Profile β€” that's the page you're on rn, no cap. grab a boba, we're doing this πŸ’…


✨ NAME ✨

Metabase::User::Profile β€” a Metabase report class for all the user-related facts, periodt 🫢

🌸 VERSION 🌸

version 0.025 β€” yes it's giving vintage, it's fine, she's iconic

πŸ¦‹ SYNOPSIS πŸ¦‹

here's the vibe in one glance:

use Metabase::User::Profile;

my $profile = Metabase::User::Profile->create(
  full_name     => 'John Doe',
  email_address => 'jdoe@example.com',
);

πŸ’œ DESCRIPTION πŸ’œ

so basically, it's a Metabase report class that wraps up Facts about a metabase user. that's the whole gig. she contains user lore ✨

πŸŽ€ USAGE πŸŽ€

the short way πŸ“

just yeet it into existence:

my $profile = Metabase::User::Profile->create(
  full_name     => 'John Doe',
  email_address => 'jdoe@example.com',
);

the long way 🐒

for when you want the whole ritual, main character energy only:

my $profile = Metabase::User::Profile->open(
  resource => 'metabase:user:b66c7662-1d34-11de-a668-0df08d1878c0'
  creator  => 'metabase:user:b66c7662-1d34-11de-a668-0df08d1878c0'
);

$profile->add( 'Metabase::User::EmailAddress' => 'jdoe@example.com' );
$profile->add( 'Metabase::User::FullName'     => 'John Doe' );

$profile->close;

πŸ‘‘ METHODS πŸ‘‘

create 🐣

my $new_profile = Metabase::User::Profile->create(%arg);

this method makes a brand-new user profile object out of the parameters you hand it. literally birthing a profile, slay.

valid parameters include:

  • full_name β€” the user's full name
  • email_address β€” the user's email address

load πŸ“‚

my $profile = Metabase::User::Profile->load($filename);

this one loads a profile off your disk and hands it right back to you. so convenient πŸ’–

save πŸ’Ύ

$profile->save($filename);

this method writes the profile out to a file. if the file can't be written, an exception is raised β€” so heads up, bestie, it will NOT be quiet about it. and if the save works out? a true value comes back to you. success vibes πŸŽ‰


πŸ’€ BUGS πŸ’€

pls pls pls report any bugs or features using the CPAN Request Tracker. bugs can be submitted through the web interface at:

<http://rt.cpan.org/Dist/Display.html?Queue=Metabase-Fact>

and when you do submit a bug or a request, include a test-file or a patch to an existing test-file that shows off the bug or the feature you want. receipts, basically. show us the problem πŸ™ˆ

🌈 AUTHORS 🌈

  • David Golden <dagolden@cpan.org>
  • Ricardo Signes <rjbs@cpan.org>
  • H.Merijn Brand <hmbrand@cpan.org>

this software is Copyright (c) 2016 by David Golden.

this is free software, licensed under:

The Apache License, Version 2.0, January 2004

and that's the whole page, bestie 🫢 tysm for reading all the way to the end, you ate that fr fr. this lil masterpiece was served up by perl v5.36.0 on 2022-10-14, and the page you just devoured is Metaba...Profile(3pm) πŸ’–βœ¨ stay slaying, iykyk 🧚

πŸ“¦ where this page comes from