Sha256: 96347e88c7ea8e43bc47a4a55eeea1029398584b5b13c5ab4aaf05a5d27cee06

Contents?: true

Size: 396 Bytes

Versions: 1

Compression:

Stored size: 396 Bytes

Contents

# frozen_string_literal: true

require "lutaml/model"

module LocMods
  class EnumerationAndChronology < Lutaml::Model::Serializable
    attribute :content, :string
    attribute :unit_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

1 entries across 1 versions & 1 rubygems

Version Path
loc_mods-0.2.5 lib/loc_mods/enumeration_and_chronology.rb