class Superfeedr::Entry
Public Instance Methods
categories()
click to toggle source
# File lib/superfeedr/superfeedr.rb, line 79 def categories xpath(".//atom:category/@term").map { |c| c.text } end
content()
click to toggle source
entry : The content of the entry. Check the type attribute to determine the mime-type.
# File lib/superfeedr/superfeedr.rb, line 56 def content content_from("atom:content") end
id()
click to toggle source
entry : the Unique ID of the entry. If the original entry doesn't have an ID.
# File lib/superfeedr/superfeedr.rb, line 36 def id content_from("atom:id") end
lang()
click to toggle source
entry : The language of the entry. It's either extracted or computed from the content (the longer t# he content, the more relevant).
# File lib/superfeedr/superfeedr.rb, line 70 def lang content_from("@lang") end
link()
click to toggle source
# File lib/superfeedr/superfeedr.rb, line 74 def link child = xpath("atom:link") Link.new(child) if child end
mime_type()
click to toggle source
# File lib/superfeedr/superfeedr.rb, line 60 def mime_type content_from("atom:content/@type") end
points()
click to toggle source
# File lib/superfeedr/superfeedr.rb, line 87 def points xpath(".//geo:point").map { |child| Point.new(child) } end
published_at()
click to toggle source
entry : The publication date (iso8601) of the entry.
# File lib/superfeedr/superfeedr.rb, line 46 def published_at datetime_from("atom:published") end
summary()
click to toggle source
entry (optional, unique) : The summary of the entry. Check the type attribute to determine the mime-type
# File lib/superfeedr/superfeedr.rb, line 65 def summary content_from("atom:summary") end
title()
click to toggle source
entry : The title of the entry.
# File lib/superfeedr/superfeedr.rb, line 41 def title content_from("atom:title") end
updated_at()
click to toggle source
entry : The last updated date (iso8601) of the entry.
# File lib/superfeedr/superfeedr.rb, line 51 def updated_at datetime_from("atom:updated") end