Class: Item

Inherits:
Object
  • Object
show all
Includes:
SAXMachine
Defined in:
lib/stanzas/notification_stanza.rb

Overview

Repesents the items published by the firehoser (the feed entries). They have accessors for the following fields :

  • title

  • summary

  • link

  • published

  • unique_id

  • chunks (long entries might be notified in several chunks)

  • chunk (current chunk out of chunks)

Instance Method Summary collapse

Instance Method Details

#chunkObject



30
31
32
# File 'lib/stanzas/notification_stanza.rb', line 30

def chunk
  @chunk.to_i
end

#chunksObject



26
27
28
# File 'lib/stanzas/notification_stanza.rb', line 26

def chunks
  @chunks.to_i
end

#publishedObject



22
23
24
# File 'lib/stanzas/notification_stanza.rb', line 22

def published
  Time.parse(@published)
end