Class | Jabber::PubSub::Event |
In: |
lib/xmpp4r/pubsub/children/event.rb
|
Parent: | XMPPElement |
Event a publishing event
return the payload type
# File lib/xmpp4r/pubsub/children/event.rb, line 32 32: def event_type? 33: # each child of event 34: # this should iterate 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
add payload
payload: | [REXML::Element] |
# File lib/xmpp4r/pubsub/children/event.rb, line 26 26: def payload=(pl) 27: add_element = pl 28: end