Class: Rssly::Serializers::Serializer
- Inherits:
-
Object
- Object
- Rssly::Serializers::Serializer
- Defined in:
- lib/rssly/serializers.rb
Overview
The base serializer class
Instance Method Summary collapse
-
#initialize(collection) ⇒ Serializer
constructor
A new instance of Serializer.
- #perform ⇒ Object
Constructor Details
#initialize(collection) ⇒ Serializer
Returns a new instance of Serializer.
5 6 7 |
# File 'lib/rssly/serializers.rb', line 5 def initialize(collection) @collection = collection end |
Instance Method Details
#perform ⇒ Object
9 10 11 |
# File 'lib/rssly/serializers.rb', line 9 def perform fail 'Serializer#perform must be implemented' end |