Sha256: 7b5d835e73d32142dd17a38210f17d0f5244e81978188439772a5e7ef0623071
Contents?: true
Size: 956 Bytes
Versions: 24
Compression:
Stored size: 956 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 ## # Unsubscribe class Unsubscribe < XMPPElement name_xmlns 'unsubscribe' def initialize(myjid=nil,mynode=nil) super() jid = myjid node = mynode end ## # shows the jid # return:: [String] def jid (a = attribute('jid')).nil? ? a : JID.new(a.value) end ## # sets the jid # =:: [Jabber::JID] or [String] def jid=(myjid) add_attribute('jid', myjid ? myjid.to_s : nil) end ## # shows the node # return:: [String] def node attributes['node'] end ## # sets the node # =:: [String] def node=(mynode) attributes['node'] = mynode end end end end
Version data entries
24 entries across 24 versions & 11 rubygems