Sha256: 67e42ead2a22b697ba05c18f56106e3aac5246c5f6c8fbf9f1c043ae31ca6eb3
Contents?: true
Size: 793 Bytes
Versions: 1
Compression:
Stored size: 793 Bytes
Contents
# =XMPP4R - XMPP Library for Ruby # License:: Ruby's license (see the LICENSE file) or GNU GPL, at your option. # Website::http://xmpp4r.github.io require 'xmpp4r/xmppelement' module Jabber module PubSub ## # Publish # # A <publish> XMPP element, see example 1 in # http://www.xmpp.org/extensions/xep-0060.html#intro-howitworks class Publish < XMPPElement include Enumerable name_xmlns 'publish', NS_PUBSUB ## # support for enumerating <item> elements def each(&block) items.each(&block) end ## # return child <item> elements def items get_elements("item") end ## # return the node for this publication def node attributes['node'] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
xmpp4r-0.5.6 | lib/xmpp4r/pubsub/children/publish.rb |