Class: Blather::Stanza::PubSub::Event

Inherits:
Message
  • Object
show all
Defined in:
lib/blather/event.rb

Instance Method Summary collapse

Instance Method Details

#itemsObject



7
8
9
10
11
# File 'lib/blather/event.rb', line 7

def items
  items_node.find('.//ps:item', :ps => PS).map do |i|
    PubSubItem.new(nil,nil,self.document).inherit i
  end
end

#statusObject



13
14
15
16
# File 'lib/blather/event.rb', line 13

def status
  n = find("ps_event:event/sf:status", :ps_event => PS_EVENT, :sf => SF)
  Superfeedr::Status.new(n) if n
end