Sha256: cd97fccb23e052c039460d46805f3be4255406e1924eee8d828ec9d8e0194708
Contents?: true
Size: 625 Bytes
Versions: 3
Compression:
Stored size: 625 Bytes
Contents
# frozen_string_literal: true require_relative "base_mapper" module LocMods # LocMods::StringPlusLanguagePlusAuthority class Occupation < BaseMapper attribute :content, Shale::Type::String attribute :authority, Shale::Type::String attribute :authority_uri, Shale::Type::Value attribute :value_uri, Shale::Type::Value xml do root "occupation" namespace "http://www.loc.gov/mods/v3", nil map_content to: :content map_attribute "authority", to: :authority map_attribute "authorityURI", to: :authority_uri map_attribute "valueURI", to: :value_uri end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
loc_mods-0.2.4 | lib/loc_mods/occupation.rb |
loc_mods-0.2.3 | lib/loc_mods/occupation.rb |
loc_mods-0.2.2 | lib/loc_mods/occupation.rb |