Method: Formatter::Base#format

Defined in:
lib/bns/formatter/base.rb

#format(_domain_data) ⇒ Object

This method is designed to provide a specified format for data from any implementation of the Mapper::Base interface. Must be overridden by subclasses, with specific logic based on the use case.


Params:

  • List<Domain::> domain_data: List of specific domain objects depending on the use case.


raises Domain::Exceptions::FunctionNotImplemented when missing implementation.

returns String Formatted payload suitable for a Dispatcher::Base implementation.

Raises:



35
36
37
# File 'lib/bns/formatter/base.rb', line 35

def format(_domain_data)
  raise Domain::Exceptions::FunctionNotImplemented
end