Class: Jabber::PubSub::Unsubscribe

Class | Jabber::PubSub::Unsubscribe
In: | lib/xmpp4r/pubsub/children/unsubscribe.rb
Parent: | XMPPElement

Unsubscribe

### Methods

jid jid= new node node=

### Public Class methods

new(myjid=nil,mynode=nil)

[Source]

        # File lib/xmpp4r/pubsub/children/unsubscribe.rb, line 13
    13:       def initialize(myjid=nil,mynode=nil)
    14:         super()
    15:         jid = myjid
    16:         node =  mynode
    17:       end

### Public Instance methods

jid()

shows the jid

return: | [String]

[Source]

        # File lib/xmpp4r/pubsub/children/unsubscribe.rb, line 22
    22:       def jid
    23:         (a = attribute('jid')).nil? ? a : JID.new(a.value)
    24:       end

jid=(myjid)

sets the jid

=: | [Jabber::JID] or [String]

[Source]

        # File lib/xmpp4r/pubsub/children/unsubscribe.rb, line 29
    29:       def jid=(myjid)
    30:         add_attribute('jid', myjid ? myjid.to_s : nil)
    31:       end

node()

shows the node

return: | [String]

[Source]

        # File lib/xmpp4r/pubsub/children/unsubscribe.rb, line 36
    36:       def node
    37:         attributes['node']
    38:       end

node=(mynode)

sets the node

=: | [String]

[Source]

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

[Validate]