class

XMPP::Stanza::AvatarData

Inherits Reference / Object

AvatarData is the payload of the "urn:xmpp:avatar:data" PEP node (XEP-0084). It holds the base64-encoded avatar image bytes.

Constructors

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

Class methods

from_node(node : Node) : AvatarData | Nil

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

Source
xml_name
Source

Instance methods

data
Source
data=(data : String)
Source
to_node
Source
to_xml(xml : XML::Builder)
Source