Net::RDAP::JCard(3p)

NAME
Net::RDAP::JCard - a module representing an RDAP jCard object.

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;

DESCRIPTION
This module provides a representation of jCard properties, as described in RFC 7095 <https://www.rfc-editor.org/rfc/rfc7095.html>.

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

You probably don't need to instantiate these objects yourself, but if you do, you just need to pass an arrayref of properties (which are themelves arrayrefs).

METHODS
    @properties = $jcard->properties;

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

Returns a (potentially empty) array of Net::RDAP::JCard::Property objects, optionally filtered to just those that have the $type type (matched case-insensitively).

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

Returns the first property matching the provided type, or "undef" if none was found.

    @addresses = $jcard->addresses;

Returns a (potentially empty) array of Net::RDAP::JCard::Address objects, representing the "adr" properties of the jCard object.

    $address = $jcard->first_address;

Returns a Net::RDAP::JCard::Address object representing the first address found, or "undef".

COPYRIGHT
Copyright 2018-2023 CentralNic Ltd, 2024-2025 Gavin Brown. For licensing information, please see the "LICENSE" file in the Net::RDAP distribution.