class

XMPP::Stanza::AvatarMetadata

Inherits Reference / Object

AvatarMetadata is the payload of the "urn:xmpp:avatar:metadata" PEP node (XEP-0084). It describes the published avatar without the image bytes so subscribers can decide whether to fetch the data node.

Constructors

new(xml : String)
Source
new(node : XML::Node)
Source

Class methods

from_node(node : Node) : AvatarMetadata | Nil

from_node converts a generic Item payload (as delivered in a PEP notification) back into an AvatarMetadata model.

Source
xml_name
Source

Instance methods

infos
Source
to_node
Source
to_xml(xml : XML::Builder)
Source