Sha256: 5d22bcdc85b74bee96005f328e79842dedf66cc1129aba8101f73c06b5b7ef3c
Contents?: true
Size: 571 Bytes
Versions: 3
Compression:
Stored size: 571 Bytes
Contents
# frozen_string_literal: true require_relative "base_mapper" module LocMods class StringPlusLanguage < BaseMapper attribute :content, Shale::Type::String attribute :lang, Shale::Type::String attribute :script, Shale::Type::String attribute :transliteration, Shale::Type::String xml do root "nonSort" namespace "http://www.loc.gov/mods/v3", nil map_content to: :content map_attribute "lang", to: :lang map_attribute "script", to: :script map_attribute "transliteration", to: :transliteration end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
loc_mods-0.2.4 | lib/loc_mods/string_plus_language.rb |
loc_mods-0.2.3 | lib/loc_mods/string_plus_language.rb |
loc_mods-0.2.2 | lib/loc_mods/string_plus_language.rb |