PubSubHubbub::Feed
Inherits Reference < Object
Constants
PUBLISHED_PATTERN = "%FT%T%:z"
UPDATED_PATTERN = "%FT%T.%9N%:z"
Class methods
parse(xml : String)
Parse full xml feed from YouTube PubSubHubbub
feed = Feed.parse(
"<?xml version='1.0' encoding='UTF-8'?>
<feed>
<title>Feed Title</title>
...
</feed>")
puts feed.title # => Feed Title
parse_topic(xml : String)
Parse only <link rel="self" ... /> from feed to fast recognize the topic
Instance methods
entries
Sourcelink
Sourcelink=(link : Hash(String, String))
Sourcetitle
Sourcetitle=(title : String | Nil)
Sourceupdated
Sourceupdated=(updated : Time | Nil)
Source