Class: Lutaml::Lml::ViewResolver

Inherits:
Object
  • Object
show all
Defined in:
lib/lutaml/lml/view_resolver.rb

Instance Method Summary collapse

Instance Method Details

#resolve(document, entity_index, associations) ⇒ Object

entity_index is the ImportResolver's name → entity map.



7
8
9
10
11
12
# File 'lib/lutaml/lml/view_resolver.rb', line 7

def resolve(document, entity_index, associations)
  visible = apply_filters(document, entity_index)
  filtered_associations = filter_associations(associations, visible)

  [visible, filtered_associations]
end