NAME
Net::RDAP::Base - the base module for many Net::RDAP:: modules.
DESCRIPTION
You don't use Net::RDAP::Base
directly, instead, various other modules extend it.
METHODS
Language
$lang = $object->lang;
Returns the language identifier for this object, or undef
.
Links
@links = $object->links;
Returns a (potentially empty) array of Net::RDAP::Link objects.
"Self" Link
$self = $object->self;
Returns a Net::RDAP::Link object corresponding to the self
link of this object (if one is available).
DOCUMENT URL
$url = $object->document_url;
This method returns a URI object representing the URL of the document that this object appears in. This is helpful when converting relative URLs (which might appear in links) into absolute URLs.
PARENT OBJECT
$parent = $object->parent;
Returns the object in which this object is embedded, or undef
if this object is the topmost object in the RDAP response.
TOPMOST OBJECT
$top = $object->top;
Returns the topmost object in the RDAP response.
OBJECT CHAIN
@chain = $object->chain;
Returns an array containing the hierarchy of objects that enclose this object. So for example, the registrar entity of host object of a domain name will have a chain that looks like [Net::RDAP::Object::Entity, Net::RDAP::Object::Nameserver, Net::RDAP::Object::Domain]
. If the object is the topmost object of the RDAP response, the array will be empty.
TO_JSON()
Net::RDAP::Base
provides a TO_JSON()
so that any RDAP object can be serialized back into JSON if your JSON serializer (JSON, JSON::XS, etc) is configured with the convert_blessed
option.
COPYRIGHT
Copyright 2018-2023 CentralNic Ltd, 2024 Gavin Brown. For licensing information, please see the LICENSE
file in the Net::RDAP distribution.