NAME
Net::RDAP::JCard - an object representing an RDAP jCard object.
SYNOPSIS
#
# get an object by calling the vcardArray() method on a Net::RDAP::Object::Entity
#
my $vcardArray = $entity->vcardArray;
my $name = ($vcardArray->nodes('fn'))[0];
say $name->value;
DESCRIPTION
This module provides a representation of jCard objects, as described in RFC 7095. Historically, the only way to access the contents of the vcardArray
property of Net::RDAP::Object::Entity objects was to call the vcard()
method and get a vCard object back, but the conversion was lossy. This module provides a lossless ergonomic interface as an alternative to vCard.
CONSTRUCTOR
$vcardArray = 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 nodes.
METHODS
@nodes = $vcardArray->nodes;
@nodes = $vcardArray->nodes($type);
Returns an array of Net::RDAP::JCard::Node objects, optionally filtered to just those that have the $type
type.
COPYRIGHT
Copyright 2024 Gavin Brown. All rights reserved.
LICENSE
Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation, and that the name of the author not be used in advertising or publicity pertaining to distribution of the software without specific prior written permission.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.