Sha256: ee675790c181555150cd30da269eb76e527c3405309b43dcd7c8275a1f537f1c

Contents?: true

Size: 377 Bytes

Versions: 1

Compression:

Stored size: 377 Bytes

Contents

# frozen_string_literal: true

require "lutaml/model"

require_relative "date"

module LocMods
  class DateOther < Lutaml::Model::Serializable
    attribute :content, :string
    attribute :type, :string

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

      map_content to: :content
      map_attribute "type", to: :type
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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