Class: Format
- Inherits:
-
Object
- Object
- Format
- Defined in:
- lib/format.rb
Overview
The Format class is provided as a base class for all publishing formats that are included in the Item class. Examples of format implementations include JsonObjectFormat and HttpStreamFormat.
Instance Method Summary collapse
-
#export ⇒ Object
The export method which should return a format-specific hash containing the required format-specific data.
-
#name ⇒ Object
The name of the format which should return a string.
Instance Method Details
#export ⇒ Object
The export method which should return a format-specific hash containing the required format-specific data.
21 22 23 |
# File 'lib/format.rb', line 21 def export raise NotImplementedError end |
#name ⇒ Object
The name of the format which should return a string. Examples include ‘json-object’ and ‘http-response’
15 16 17 |
# File 'lib/format.rb', line 15 def name raise NotImplementedError end |