Module: Mapper::Base
- Defined in:
- lib/bas/mapper/base.rb
Overview
The Mapper::Base module serves as the foundation for implementing specific data shaping logic within the Mapper module. Defines essential methods, that provide a blueprint for organizing or shaping data in a manner suitable for downstream formatting processes.
Instance Method Summary collapse
-
#map(_response) ⇒ Object
An method meant to prepare or organize the data coming from an implementation of the Fetcher::Base interface.
Instance Method Details
#map(_response) ⇒ Object
An method meant to prepare or organize the data coming from an implementation of the Fetcher::Base interface. Must be overridden by subclasses, with specific logic based on the use case.
Params:
-
Fetcher::Notion::Types::Response
response: Response produced by a fetcher.
raises Domain::Exceptions::FunctionNotImplemented
when missing implementation.
returns List<Domain::>
Mapped list of data, ready to be formatted.
26 27 28 |
# File 'lib/bas/mapper/base.rb', line 26 def map(_response) raise Domain::Exceptions::FunctionNotImplemented end |