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