Class: Item
- Inherits:
-
Object
- Object
- Item
- Includes:
- SAXMachine
- Defined in:
- lib/stanzas/notification_stanza.rb
Instance Method Summary collapse
Instance Method Details
#chunk ⇒ Object
35 36 37 |
# File 'lib/stanzas/notification_stanza.rb', line 35 def chunk @chunk.to_i end |
#chunks ⇒ Object
31 32 33 |
# File 'lib/stanzas/notification_stanza.rb', line 31 def chunks @chunks.to_i end |
#link ⇒ Object
23 24 25 |
# File 'lib/stanzas/notification_stanza.rb', line 23 def link CGI.unescape(@link).gsub("\n", "") end |
#published ⇒ Object
27 28 29 |
# File 'lib/stanzas/notification_stanza.rb', line 27 def published Time.parse(@published) end |