Class: Jabber::PubSub::NodeConfig

Inherits:
Configuration show all
Defined in:
lib/xmpp4r/pubsub/children/node_config.rb

Overview

NodeConfig

A <configure> XMPP element for pubsub nodes, see example 123 in www.xmpp.org/extensions/xep-0060.html#owner-create-and-configure

Direct Known Subclasses

OwnerNodeConfig

Instance Method Summary collapse

Methods inherited from Configuration

#form, #form=, #node, #node=, #options, #options=

Methods inherited from XMPPElement

class_for_name_xmlns, #clone, force_xmlns, force_xmlns?, import, name_xmlns, name_xmlns_for_class, #parent=, #set_xml_lang, #typed_add, #xml_lang, #xml_lang=

Methods inherited from REXML::Element

#==, #delete_elements, #each_elements, #first_element, #first_element_content, #first_element_text, #import, import, #replace_element_content, #replace_element_text, #typed_add

Constructor Details

#initialize(node = nil, options = nil) ⇒ NodeConfig

Construct a <configure> element.

node
String

the node to configure

options
Hash

the configuration to apply



22
23
24
25
26
27
# File 'lib/xmpp4r/pubsub/children/node_config.rb', line 22

def initialize(node = nil, options = nil)
  super()

  self.node = node
  self.options = options
end