Class Jabber::PubSub::Event
In: lib/xmpp4r/pubsub/stanzas/event.rb
Parent: XMPPElement

Event a publishing event

Methods

Public Instance methods

return the payload type

[Source]

    # File lib/xmpp4r/pubsub/stanzas/event.rb, line 32
32:       def event_type?
33:         # each child of event
34:         # this should interate only one time
35:         each_element('./event/*') { |plelement|
36:           case plelement.name
37:             when 'collection'     then return :collection
38:             when 'configuration'   then        return :configuration
39:             when 'delete'         then return :delete
40:             when 'items'          then return :items
41:             when 'purge'          then return :purge
42:             when 'subscription'           then return :subscription
43:             else return nil
44:           end
45:          }
46:       end

return payload

[Source]

    # File lib/xmpp4r/pubsub/stanzas/event.rb, line 19
19:       def payload
20:         elements
21:       end

add payload

payload:[REXML::Element]

[Source]

    # File lib/xmpp4r/pubsub/stanzas/event.rb, line 26
26:       def payload=(pl)
27:         add_element = pl
28:       end

[Validate]