class PubSubHubbub::Feed
- PubSubHubbub::Feed
- Reference
- Object
Defined in:
pubsubhubbub/feed.crConstant Summary
-
PUBLISHED_PATTERN =
"%FT%T%:z"
-
UPDATED_PATTERN =
"%FT%T.%9N%:z"
Class Method Summary
-
.parse(xml : String)
Parse full xml feed from YouTube PubSubHubbub
-
.parse_topic(xml : String)
Parse only *<link rel="self" ...
Instance Method Summary
- #entries : Array(PubSubHubbub::Feed::Entry)
- #entries=(entries : Array(PubSubHubbub::Feed::Entry))
- #link : Hash(String, String)
- #link=(link : Hash(String, String))
- #title : String | Nil
- #title=(title : String | Nil)
- #updated : Time | Nil
- #updated=(updated : Time | Nil)
Class Method Detail
def self.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
def self.parse_topic(xml : String)
#
Parse only <link rel="self" ... /> from feed to fast recognize the topic