Sha256: f4d045f799b2596a5502523a4dd68aae125186c0a6b17eb6bd4e9149973fc269
Contents?: true
Size: 415 Bytes
Versions: 3
Compression:
Stored size: 415 Bytes
Contents
# frozen_string_literal: true require_relative "base_mapper" require_relative "hierarchical_part" module LocMods class Region < BaseMapper attribute :content, HierarchicalPart attribute :region_type, Shale::Type::Value xml do root "region" namespace "http://www.loc.gov/mods/v3", nil map_content to: :content map_attribute "regionType", to: :region_type end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
loc_mods-0.2.4 | lib/loc_mods/region.rb |
loc_mods-0.2.3 | lib/loc_mods/region.rb |
loc_mods-0.2.2 | lib/loc_mods/region.rb |