class Jabber::PubSub::Unsubscribe

Unsubscribe

Public Class Methods

new(myjid=nil,mynode=nil) click to toggle source
Calls superclass method
# File lib/xmpp4r/pubsub/children/unsubscribe.rb, line 13
def initialize(myjid=nil,mynode=nil)
  super()
  jid = myjid
  node =  mynode
end

Public Instance Methods

jid() click to toggle source

shows the jid

return
String
# File lib/xmpp4r/pubsub/children/unsubscribe.rb, line 22
def jid
  (a = attribute('jid')).nil? ? a : JID.new(a.value)
end
jid=(myjid) click to toggle source

sets the jid

:: [Jabber::JID] or [String]

# File lib/xmpp4r/pubsub/children/unsubscribe.rb, line 29
def jid=(myjid)
  add_attribute('jid', myjid ? myjid.to_s : nil)
end
node() click to toggle source

shows the node

return
String
# File lib/xmpp4r/pubsub/children/unsubscribe.rb, line 36
def node
  attributes['node']
end
node=(mynode) click to toggle source

sets the node

:: [String]

# File lib/xmpp4r/pubsub/children/unsubscribe.rb, line 43
def node=(mynode)
  attributes['node'] = mynode
end