The <c/> XMPP element, used to advertise entity capabilities.
See www.xmpp.org/extensions/xep-0115.html#protocol.
You should not need to construct this element directly, see Jabber::Caps::Helper.
# File lib/xmpp4r/caps/c.rb, line 22 def initialize(node = nil, ver = nil) super() add_attribute('node', node) if node if ver add_attribute('ver', ver) add_attribute('hash', 'sha-1') end end
Get the value of this element's 'ext' attribute, the list of extensions for legacy clients.
# File lib/xmpp4r/caps/c.rb, line 55 def ext attributes['ext'] end
Get the value of this element's 'hash' attribute, the algorithm used in generating the 'ver' attribute
# File lib/xmpp4r/caps/c.rb, line 48 def hash attributes['hash'] end
Is this a legacy caps response, as defined by version 1.3 of the XEP-0115 specification?
# File lib/xmpp4r/caps/c.rb, line 62 def legacy? hash.nil? || hash.empty? end
Get the value of this element's 'node' attribute, a 'unique identifier for the software underlying the entity'
# File lib/xmpp4r/caps/c.rb, line 41 def node attributes['node'] end
Get the value of this element's 'ver' attribute, an opaque hash representing this entity's capabilities.
# File lib/xmpp4r/caps/c.rb, line 34 def ver attributes['ver'] end