Sha256: 6da25efdab0cdc7e89ee7ab9d73c7c06cd726ac055b9e5229e99423cf50e96a1

Contents?: true

Size: 392 Bytes

Versions: 3

Compression:

Stored size: 392 Bytes

Contents

# frozen_string_literal: true

require_relative "base_mapper"

require_relative "date"

module LocMods
  class DateOther < BaseMapper
    attribute :content, Shale::Type::String
    attribute :type, Shale::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

3 entries across 3 versions & 1 rubygems

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