class

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
Source
parse_topic(xml : String)

Parse only <link rel="self" ... /> from feed to fast recognize the topic

Source

Instance methods

entries
Source
entries=(entries : Array(PubSubHubbub::Feed::Entry))
Source
title
Source
title=(title : String | Nil)
Source
updated
Source
updated=(updated : Time | Nil)
Source

Nested types