Class: Lutaml::Model::ImportTransformer
- Inherits:
-
Transformer
- Object
- Transformer
- Lutaml::Model::ImportTransformer
- Defined in:
- lib/lutaml/model/services/transformer.rb
Instance Attribute Summary
Attributes inherited from Transformer
#attribute, #context, #format, #rule
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Transformer
#apply_class_transformer, #call, #export_direction?, #get_transform, #initialize, #invoke_transform
Constructor Details
This class inherits a constructor from Lutaml::Model::Transformer
Class Method Details
.call(value, rule, attribute, format: nil, context: nil) ⇒ Object
109 110 111 |
# File 'lib/lutaml/model/services/transformer.rb', line 109 def call(value, rule, attribute, format: nil, context: nil) apply_static(value, [rule, attribute], :import, format, context) end |
Instance Method Details
#ordered_sources ⇒ Object
114 115 116 |
# File 'lib/lutaml/model/services/transformer.rb', line 114 def ordered_sources [rule, attribute] end |
#transformation_methods ⇒ Object
118 119 120 |
# File 'lib/lutaml/model/services/transformer.rb', line 118 def transformation_methods ordered_sources.filter_map { |obj| get_transform(obj, :import) } end |