An <options> XMPP element, see example 57 in www.xmpp.org/extensions/xep-0060.html#subscriber-configure-success
Construct a new Options stanza
the node to which this subscription applies
or [Jabber::JID] the jid that holds the subscription
the configuration for this subscription
(optional) subscription id
# File lib/xmpp4r/pubsub/children/subscription_config.rb, line 25 def initialize(node = nil, jid = nil, options = nil, subid = nil) super() self.node = node self.jid = jid self.options = options self.subid = subid end
get the 'jid' attribute for this stanza
# File lib/xmpp4r/pubsub/children/subscription_config.rb, line 43 def jid attributes['jid'] ? Jabber::JID.new(attributes['jid']) : nil end
set the 'jid' attribute of this stanza
or [String] the jid owning the subscription
# File lib/xmpp4r/pubsub/children/subscription_config.rb, line 37 def jid=(jid) attributes['jid'] = jid.to_s end
get the 'subid' attribute
# File lib/xmpp4r/pubsub/children/subscription_config.rb, line 56 def subid attributes['subid'] end
set the 'subid' attribute
the subscription id
# File lib/xmpp4r/pubsub/children/subscription_config.rb, line 50 def subid=(subid) attributes['subid'] = subid end
# File lib/xmpp4r/pubsub/children/subscription_config.rb, line 62 def form_type 'http://jabber.org/protocol/pubsub#subscribe_options' end