Sha256: 39fb2602c38319ef43a970c0a6ed3e8a1f1984d60aef089d5e4533ed3385b749
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 KB
Contents
# frozen_string_literal: true require "lutaml/model" require_relative "language_term" require_relative "script_term" module LocMods class Language < Lutaml::Model::Serializable attribute :object_part, :string attribute :lang, :string attribute :script, :string attribute :transliteration, :string attribute :display_label, :string attribute :alt_rep_group, :string attribute :usage, :string attribute :language_term, LanguageTerm, collection: true attribute :script_term, ScriptTerm, collection: true xml do root "languageOfCataloging" namespace "http://www.loc.gov/mods/v3", nil map_attribute "objectPart", to: :object_part map_attribute "lang", to: :lang map_attribute "script", to: :script map_attribute "transliteration", to: :transliteration map_attribute "displayLabel", to: :display_label map_attribute "altRepGroup", to: :alt_rep_group map_attribute "usage", to: :usage map_element "languageTerm", to: :language_term map_element "scriptTerm", to: :script_term end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
loc_mods-0.2.5 | lib/loc_mods/language.rb |