Class: ROM::Transformer
- Inherits:
-
Object
- Object
- ROM::Transformer
- Extended by:
- Dry::Core::ClassAttributes
- Defined in:
- lib/rom/transformer.rb
Overview
Transformer is a data mapper which uses Transproc’s transformer DSL to define transformations.
Class Method Summary collapse
-
.base_relation ⇒ Object
private
This is needed to make transformers compatible with rom setup.
-
.build ⇒ Transformer
Build a mapper instance.
Class Method Details
.base_relation ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This is needed to make transformers compatible with rom setup
19 20 21 |
# File 'lib/rom/transformer.rb', line 19 def self.base_relation relation end |
.build ⇒ Transformer
Build a mapper instance
28 29 30 |
# File 'lib/rom/transformer.rb', line 28 def self.build new end |