Sha256: 8bc9b8ad0e096e15593a159e1ade7f53a7fa0b94c5e37ad78882837b31591892

Contents?: true

Size: 1.18 KB

Versions: 33

Compression:

Stored size: 1.18 KB

Contents

# =XMPP4R - XMPP Library for Ruby
# License:: Ruby's license (see the LICENSE file) or GNU GPL, at your option.
# Website::http://home.gna.org/xmpp4r/

require 'xmpp4r/xmppelement'
require 'xmpp4r/pubsub/children/configuration'

module Jabber
  module PubSub
    ##
    # NodeConfig
    #
    # A <configure> XMPP element for pubsub nodes, see example 123 in
    # http://www.xmpp.org/extensions/xep-0060.html#owner-create-and-configure
    class NodeConfig < Configuration
      name_xmlns 'configure', NS_PUBSUB

      ##
      # Construct a <configure> element.
      # node:: [String] the node to configure
      # options:: [Hash] the configuration to apply
      def initialize(node = nil, options = nil)
        super()

        self.node = node
        self.options = options
      end

      private

      def form_type
        'http://jabber.org/protocol/pubsub#node_config'
      end
    end

    ##
    #
    # OwnerNodeConfig
    #
    # A <configure> stanza for 'Owner' use cases
    #
    # see example 125 in
    # http://www.xmpp.org/extensions/xep-0060.html#owner-configure-request
    class OwnerNodeConfig < NodeConfig
      name_xmlns 'configure', NS_PUBSUB + '#owner'
    end
  end
end

Version data entries

33 entries across 33 versions & 13 rubygems

Version Path
brontes3d-xmpp4r-0.4 lib/xmpp4r/pubsub/children/node_config.rb
bryanl-xmpp4r-0.3.2 lib/xmpp4r/pubsub/children/node_config.rb
edavey-xmpp4r-0.4.1 lib/xmpp4r/pubsub/children/node_config.rb
edavey-xmpp4r-0.4.2 lib/xmpp4r/pubsub/children/node_config.rb
edavey-xmpp4r-0.4 lib/xmpp4r/pubsub/children/node_config.rb
heipei-xmpp4r-0.3.2 lib/xmpp4r/pubsub/children/node_config.rb
ln-xmpp4r-0.5 lib/xmpp4r/pubsub/children/node_config.rb
mojodna-xmpp4r-0.4.0.2 lib/xmpp4r/pubsub/children/node_config.rb
mojodna-xmpp4r-0.4.0.3 lib/xmpp4r/pubsub/children/node_config.rb
seanohalpin-xmpp4r-0.4.1 lib/xmpp4r/pubsub/children/node_config.rb
xmpp4r-0.5.5 lib/xmpp4r/pubsub/children/node_config.rb
gmcmillan-xmpp4r-0.6.2 lib/xmpp4r/pubsub/children/node_config.rb
gmcmillan-xmpp4r-0.6.1 lib/xmpp4r/pubsub/children/node_config.rb
gmcmillan-xmpp4r-0.6 lib/xmpp4r/pubsub/children/node_config.rb
gmcmillan-xmpp4r-0.5 lib/xmpp4r/pubsub/children/node_config.rb
mad-p-xmpp4r-0.6.3 lib/xmpp4r/pubsub/children/node_config.rb
mad-p-xmpp4r-0.6.2 lib/xmpp4r/pubsub/children/node_config.rb
mad-p-xmpp4r-0.6.1 lib/xmpp4r/pubsub/children/node_config.rb
mad-p-xmpp4r-0.6.0 lib/xmpp4r/pubsub/children/node_config.rb
cerberus-0.8.0 lib/vendor/xmpp4r/lib/xmpp4r/pubsub/children/node_config.rb