Class: ROF::Translator
- Inherits:
-
Object
- Object
- ROF::Translator
- Defined in:
- lib/rof/translator.rb
Overview
TODO:
This is a work in progress; I will be normalizing the .call behavior.
A translator is responsible for converting the input into the given output. The input and output need not be the same type (e.g. CSV to Hash)
Direct Known Subclasses
ROF::Translators::CsvToRof, ROF::Translators::FedoraToRof, ROF::Translators::OsfToRof
Class Method Summary collapse
-
.call(input, config = {}) ⇒ Hash
Often times a Hash that can be serialized into JSON.
Class Method Details
.call(input, config = {}) ⇒ Hash
Returns often times a Hash that can be serialized into JSON.
14 15 16 |
# File 'lib/rof/translator.rb', line 14 def self.call(input, config = {}) raise NotImplementedError end |