Sha256: 4c080904f14d66f6d1dc1b588352d83964e8783c6f3282647c1fa3ba4659793c

Contents?: true

Size: 419 Bytes

Versions: 3

Compression:

Stored size: 419 Bytes

Contents

# frozen_string_literal: true

require_relative "base_mapper"

module LocMods
  # LocMods::StringPlusLanguagePlusSupplied
  class Edition < BaseMapper
    attribute :content, Shale::Type::String
    attribute :supplied, Shale::Type::String

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

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

Version data entries

3 entries across 3 versions & 1 rubygems

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