Sha256: e660b6348b2a90b917404c7e77d1ff8a1fa4da646193eb03b834217768efb431
Contents?: true
Size: 1.04 KB
Versions: 3
Compression:
Stored size: 1.04 KB
Contents
# frozen_string_literal: true require_relative "base_mapper" module LocMods class AccessCondition < BaseMapper attribute :content, Shale::Type::String attribute :display_label, Shale::Type::String attribute :lang, Shale::Type::String attribute :script, Shale::Type::String attribute :transliteration, Shale::Type::String attribute :type, Shale::Type::String attribute :alt_rep_group, Shale::Type::String attribute :alt_format, Shale::Type::Value attribute :content_type, Shale::Type::String xml do root "accessCondition" namespace "http://www.loc.gov/mods/v3", nil map_content to: :content map_attribute "displayLabel", to: :display_label map_attribute "lang", to: :lang map_attribute "script", to: :script map_attribute "transliteration", to: :transliteration map_attribute "type", to: :type map_attribute "altRepGroup", to: :alt_rep_group map_attribute "altFormat", to: :alt_format map_attribute "contentType", to: :content_type end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
loc_mods-0.2.4 | lib/loc_mods/access_condition.rb |
loc_mods-0.2.3 | lib/loc_mods/access_condition.rb |
loc_mods-0.2.2 | lib/loc_mods/access_condition.rb |