class FeedDuck::AtomEntry
Attributes
parsed_entry[R]
Public Class Methods
new(parsed_entry)
click to toggle source
# File lib/feed_duck/atom_feed.rb, line 45 def initialize(parsed_entry) @parsed_entry = parsed_entry end
Public Instance Methods
content()
click to toggle source
# File lib/feed_duck/atom_feed.rb, line 53 def content parsed_entry.content.content end
published_at()
click to toggle source
# File lib/feed_duck/atom_feed.rb, line 57 def published_at parsed_entry.updated.content end
title()
click to toggle source
# File lib/feed_duck/atom_feed.rb, line 49 def title parsed_entry.title.content end
to_h()
click to toggle source
# File lib/feed_duck/atom_feed.rb, line 73 def to_h public_attributes.each_with_object(Hash.new) do |attr, attribute_hash| attribute_hash[attr] = send(attr) end end
url()
click to toggle source
# File lib/feed_duck/atom_feed.rb, line 65 def url parsed_entry.link.href end
uuid()
click to toggle source
# File lib/feed_duck/atom_feed.rb, line 69 def uuid parsed_entry.id.content end
Private Instance Methods
public_attributes()
click to toggle source
# File lib/feed_duck/atom_feed.rb, line 83 def public_attributes [:title, :content, :published_at, :author, :url, :uuid] end