class XMPP::ComponentDisco::DiscoInfo

Overview

DiscoInfo holds the service discovery information for a component

Defined in:

xmpp/component/disco.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def add_feature(feature : String) #

Add a feature to the component


[View source]
def add_features(features : Array(String)) #

Add multiple features at once


[View source]
def add_identity(category : String, type : String, name : String = "", xml_lang : String = "") #

Add an identity to the component


[View source]
def add_node(node : String, info : DiscoNodeInfo) #

Add a node with its own disco info


[View source]
def build_response(node : String = "") : Stanza::DiscoInfo #

Build a disco#info response


[View source]
def features : Array(String) #

[View source]
def features=(features : Array(String)) #

[View source]
def get_node(node : String) : DiscoNodeInfo | Nil #

Get disco info for a specific node


[View source]
def identities : Array(DiscoIdentity) #

[View source]
def identities=(identities : Array(DiscoIdentity)) #

[View source]
def nodes : Hash(String, DiscoNodeInfo) #

[View source]
def nodes=(nodes : Hash(String, DiscoNodeInfo)) #

[View source]