Class: Termium::Extract

Inherits:
Lutaml::Model::Serializable
  • Object
show all
Defined in:
lib/termium/extract.rb

Overview

For <extract>

Instance Method Summary collapse

Instance Method Details

#to_concept(options = {}) ⇒ Object

map_attribute “language”, to: :language, namespace: nil

map_element "extractLanguage", to: :extract_language, namespace: nil
map_element "core", to: :core, namespace: nil

end



31
32
33
34
35
36
37
# File 'lib/termium/extract.rb', line 31

def to_concept(options = {})
  coll = Glossarist::ManagedConceptCollection.new
  coll.managed_concepts = core.map do |managed_concept|
    managed_concept.to_concept(options)
  end
  coll
end