Sha256: 2e811ef7db7ae0aea8a51b6c94eff0783d0d9e02d377c4b10170a756bca6897b
Contents?: true
Size: 795 Bytes
Versions: 8
Compression:
Stored size: 795 Bytes
Contents
xml.instruct! xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do xml.title "Blog Name" xml.subtitle "Blog subtitle" xml.id "http://blog.url.com/" xml.link "href" => "http://blog.url.com/" xml.link "href" => "http://blog.url.com/feed.xml", "rel" => "self" xml.updated blog.articles.first.date.to_time.iso8601 xml.author { xml.name "Blog Author" } blog.articles[0..5].each do |article| xml.entry do xml.title article.title xml.link "rel" => "alternate", "href" => article.url xml.id article.url xml.published article.date.to_time.iso8601 xml.updated article.date.to_time.iso8601 xml.author { xml.name "Article Author" } xml.summary article.summary, "type" => "html" xml.content article.body, "type" => "html" end end end
Version data entries
8 entries across 8 versions & 1 rubygems