Class: Item
- Inherits:
-
Object
- Object
- Item
- 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
#chunk ⇒ Object
30 31 32 |
# File 'lib/stanzas/notification_stanza.rb', line 30 def chunk @chunk.to_i end |
#chunks ⇒ Object
26 27 28 |
# File 'lib/stanzas/notification_stanza.rb', line 26 def chunks @chunks.to_i end |
#published ⇒ Object
22 23 24 |
# File 'lib/stanzas/notification_stanza.rb', line 22 def published Time.parse(@published) end |