class XMPP::Stanza::Caps
Overview
Capabilities Reference: https://xmpp.org/extensions/xep-0115.html#stream "A server MAY include its entity capabilities in a stream feature element so that connecting clients and peer servers do not need to send service discovery requests each time they connect." This is not a stream feature but a way to let client cache server disco info.
Defined in:
xmpp/stanza/stream/cap.crConstructors
Class Method Summary
Instance Method Summary
- #ext : String
- #ext=(ext : String)
-
#hash : String
Generates an
UInt64
hash value for this object. - #hash=(hash : String)
- #name : String
- #node : String
- #node=(node : String)
- #to_xml(elem : XML::Builder)
- #ver : String
- #ver=(ver : String)
Instance methods inherited from module XMPP::Stanza::Packet
name : String
name,
to_xml(xml : XML::Builder)to_xml : String to_xml
Constructor Detail
Class Method Detail
Instance Method Detail
Generates an UInt64
hash value for this object.
This method must have the property that a == b
implies a.hash == b.hash
.
The hash value is used along with ==
by the Hash
class to determine if two objects
reference the same hash key.
Subclasses must not override this method. Instead, they must define hash(hasher)
,
though usually the macro def_hash
can be used to generate this method.