Class: Converter Abstract

Inherits:
Object
  • Object
show all
Includes:
Logging
Defined in:
lib/business/converter/converter.rb

Overview

This class is abstract.

Abstract class that must be implemented to transform a specifical status from a Stream into a USMF standard message

Author:

  • Daniel Machado Fernandez

Version:

  • 1.0

Direct Known Subclasses

RandomConverter, TwitterConverter

Constant Summary

Constants included from Logging

Logging::KermitPFC

Instance Method Summary collapse

Methods included from Logging

#logger, logger

Instance Method Details

#to_usmf(status) ⇒ USMF

Parses a status into a USMF message

Parameters:

  • status (String)

    status retrieved and saved previously in the Adapter

Returns:

  • (USMF)

    the resultant USMF message

Raises:

  • (Exception)

    if the method hasn’t been implemented yet



17
18
19
20
21
22
# File 'lib/business/converter/converter.rb', line 17

def to_usmf status

	logger.fatal('The method to_usmf in Converter must be implemented')
	raise 'This method must be implemented'

end