Class: Rssly::Serializers::Serializer

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

Overview

The base serializer class

Direct Known Subclasses

JSON, Text

Instance Method Summary collapse

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

#performObject



9
10
11
# File 'lib/rssly/serializers.rb', line 9

def perform
  fail 'Serializer#perform must be implemented'
end