Class: ROM::Transformer

Inherits:
Object
  • Object
show all
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

Class Method Details

.base_relationObject

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

.buildTransformer

Build a mapper instance

Returns:



28
29
30
# File 'lib/rom/transformer.rb', line 28

def self.build
  new
end