Sha256: 4ecfc1d0c0c09a2c3ecddcd31c64f05593aa9b2ac15f342ac8090ec0c79ca264

Contents?: true

Size: 411 Bytes

Versions: 3

Compression:

Stored size: 411 Bytes

Contents

# frozen_string_literal: true

require_relative "base_mapper"

module LocMods
  class EnumerationAndChronology < BaseMapper
    attribute :content, Shale::Type::String
    attribute :unit_type, Shale::Type::String

    xml do
      root "enumerationAndChronology"
      namespace "http://www.loc.gov/mods/v3", nil

      map_content to: :content
      map_attribute "unitType", to: :unit_type
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
loc_mods-0.2.4 lib/loc_mods/enumeration_and_chronology.rb
loc_mods-0.2.3 lib/loc_mods/enumeration_and_chronology.rb
loc_mods-0.2.2 lib/loc_mods/enumeration_and_chronology.rb