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