Class: Lutaml::Model::ImportTransformer

Inherits:
Transformer show all
Defined in:
lib/lutaml/model/services/transformer.rb

Instance Attribute Summary

Attributes inherited from Transformer

#attribute, #rule

Instance Method Summary collapse

Methods inherited from Transformer

call, #call, #initialize

Constructor Details

This class inherits a constructor from Lutaml::Model::Transformer

Instance Method Details

#transformation_methodsObject

Precedene of transformations:

  1. Rule transform

  2. Attribute transform



28
29
30
31
32
33
# File 'lib/lutaml/model/services/transformer.rb', line 28

def transformation_methods
  [
    rule.transform[:import],
    attribute&.transform&.[](:import),
  ].compact
end