Class: Glossarist::V3::ManagedConceptData
- Inherits:
-
ManagedConceptData
- Object
- Lutaml::Model::Serializable
- ManagedConceptData
- Glossarist::V3::ManagedConceptData
- Defined in:
- lib/glossarist/v3/managed_concept_data.rb
Instance Method Summary collapse
Methods inherited from ManagedConceptData
#authoritative_source, #domains_from_yaml, #domains_to_yaml, #id_from_yaml, #id_to_yaml
Methods included from Utilities::CommonFunctions
#convert_keys_to_snake_case, #slice_keys, #snake_case, #stringify_keys, #symbolize_keys
Instance Method Details
#localizations_from_yaml(model, value) ⇒ Object
23 24 25 26 27 28 29 |
# File 'lib/glossarist/v3/managed_concept_data.rb', line 23 def localizations_from_yaml(model, value) value.each do |localized_concept_hash| localized_concept = V3::LocalizedConcept.of_yaml(localized_concept_hash) model.localizations.store(localized_concept.language_code, localized_concept) end end |
#localizations_to_yaml(model, doc) ⇒ Object
31 |
# File 'lib/glossarist/v3/managed_concept_data.rb', line 31 def localizations_to_yaml(model, doc); end |