| Class | Jabber::PubSub::SubscriptionConfig |
| In: |
lib/xmpp4r/pubsub/children/subscription_config.rb
|
| Parent: | Configuration |
An <options> XMPP element, see example 57 in www.xmpp.org/extensions/xep-0060.html#subscriber-configure-success
Construct a new Options stanza
| node: | [String] the node to which this subscription applies |
| jid: | [String] or [Jabber::JID] the jid that holds the subscription |
| options: | [Hash] the configuration for this subscription |
| subid: | [String] (optional) subscription id |
# File lib/xmpp4r/pubsub/children/subscription_config.rb, line 25
25: def initialize(node = nil, jid = nil, options = nil, subid = nil)
26: super()
27:
28: self.node = node
29: self.jid = jid
30: self.options = options
31: self.subid = subid
32: end
set the ‘jid’ attribute of this stanza
| jid: | [Jabber::JID] or [String] the jid owning the subscription |
# File lib/xmpp4r/pubsub/children/subscription_config.rb, line 37
37: def jid=(jid)
38: attributes['jid'] = jid.to_s
39: end