Sha256: ea38747f809b80708d8bcb97f095f98c8e657bb4ddedbb8fbe35ef641c2a5a51

Contents?: true

Size: 543 Bytes

Versions: 1

Compression:

Stored size: 543 Bytes

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/iq'

module Jabber
  module PubSub
    ##
    # Item
    # One PubSub Item
    class Item < XMPPElement
      name_xmlns 'item', NS_PUBSUB
      force_xmlns true
      def initialize(id=nil)
        super()
        attributes['id'] = id
      end
      def id
        attributes['id']
      end
      def id=(myid)
        attributes['id'] = myid
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
xmpp4r-0.3.2 lib/xmpp4r/pubsub/stanzas/item.rb