Class: Rssly::Serializers::HTML

Inherits:
Text show all
Defined in:
lib/rssly/serializers.rb

Overview

Transforms a collection into a html representation

Constant Summary collapse

ARTICLE_TEMPLATE =
<<-EOT
<article>
  <h1 class="title">%{title}</h1>
  <date>%{published}</date>

  <p>%{summary}</p>

  <a class="read more" href="%{url}">
    Read on.
  </a>
</article>
EOT

Method Summary

Methods inherited from Text

#perform

Methods inherited from Serializer

#initialize, #perform

Constructor Details

This class inherits a constructor from Rssly::Serializers::Serializer