Net::RDAP::JCard(3)

πŸ“¦
version 0.43 Β· 3 versions
, in fedora 44

πŸ’– NAME πŸ’–

Net::RDAP::JCard β€” bestie, it's a module that represents an RDAP jCard object. That's the whole vibe. ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

#
# get an object by calling the jcard() method on a Net::RDAP::Object::Entity
#
my $jcard = $entity->jcard;

my $fn = [ $jcard->properties('fn') ]->[0];

say $fn->value;

okay so like, you grab a jCard off an entity, you pull the fn property out of it, and you print its value. slay. πŸ’…


🌸 DESCRIPTION 🌸

This module gives you a whole representation of jCard properties, exactly as described in RFC 7095 β€” you can peep it over at <https://www.rfc-editor.org/rfc/rfc7095.html>. it's giving "specs but make it structured". πŸ’œ


πŸŽ€ CONSTRUCTOR πŸŽ€

$jcard = Net::RDAP::JCard->new($ref);

ngl you probably do not need to instantiate these objects yourself, king β€” the module handles that. but if you do, all you gotta pass is an arrayref of properties, and heads up: those properties are themselves arrayrefs. arrayrefs in arrayrefs, it's giving inception fr fr. πŸ™ˆ


✨ METHODS ✨

  • ```perl @properties = $jcard->properties;

Hands you back a (potentially empty) array of `Net::RDAP::JCard::Property` objects. No filter, no drama, just all of them. πŸ’–

- ```perl
@properties = $jcard->properties($type);

Same deal, but now it's filtered down to just the ones with the $type type. and yes, the matching is case-insensitive, so don't stress about your caps lock. πŸ”₯

  • ```perl $property = $jcard->first('fn');

Returns the very first property matching the type you asked for. and if there's, like, *nothing*? You get `undef`. it's giving "no thoughts, empty array". 😭

- ```perl
@addresses = $jcard->addresses;

Returns a (potentially empty) array of Net::RDAP::JCard::Address objects β€” these are the ones representing the adr properties of the jCard object. addresses but make it objects. πŸ‘‘

  • ```perl $address = $jcard->first_address;

Returns a `Net::RDAP::JCard::Address` object for the *first* address it finds. and if there isn't one? `undef`, bestie. that's it, that's the method. 🫢

---

# 🌈 COPYRIGHT 🌈

Copyright 2018-2023 CentralNic Ltd, 2024-2026 Gavin Brown. For licensing info, please see the `LICENSE` file in the Net::RDAP distribution. read the license, it's the responsible main character move. ⭐

---

<pink>and that's the whole page, bestie!! πŸ’–</pink> this was `Net::RDAP::JCard(3)` from the User Contributed Perl Documentation, running on <purple>perl v5.42.2</purple>, dated <cyan>2026-06-17</cyan>. mwah, go write some beautiful jCard code. πŸ§šπŸŒΈπŸ¦‹πŸ’…
πŸ“¦ where this page comes from