Class: Oni::Mapper

Inherits:
Object
  • Object
show all
Includes:
Configurable
Defined in:
lib/oni/mapper.rb

Overview

Abstract mapper class that takes care of some common boilerplate code.

Instance Method Summary collapse

Methods included from Configurable

included, #option, #require_option!

Instance Method Details

#map_input(input) ⇒ Mixed

Remaps the input of the daemon into a format that's easy to use for the worker.

Parameters:

  • input (Mixed)

Returns:

  • (Mixed)


15
16
17
# File 'lib/oni/mapper.rb', line 15

def map_input(input)
  return input
end

#map_output(output) ⇒ Mixed

Remaps the output of the working into a format that's easy to use for the daemon layer.

Parameters:

  • output (Mixed)

Returns:

  • (Mixed)


26
27
28
# File 'lib/oni/mapper.rb', line 26

def map_output(output)
  return output
end